Commit 8fc7b1f9 authored by nadro's avatar nadro

- Improved mouse handling on OS X 10.6 and newer.

- Fixed compilation issues on OS X.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4800 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 1b1d18b6
......@@ -1339,14 +1339,13 @@ void CIrrDeviceMacOSX::setMouseLocation(int x,int y)
c.y = p.y;
#ifdef __MAC_10_6
/*CGEventSourceRef SourceRef = CGEventSourceCreate(0);
CGEventSourceSetLocalEventsSuppressionInterval(SourceRef, 0);
CFRelease(SourceRef);*/
CGSetLocalEventsSuppressionInterval(0);
CGEventRef ev = CGEventCreateMouseEvent(0, kCGEventMouseMoved, c, 0);
CGEventPost(kCGHIDEventTap, ev);
CFRelease(ev);
#else
CGSetLocalEventsSuppressionInterval(0);
CGSetLocalEventsSuppressionInterval(0);
CGWarpMouseCursorPosition(c);
#endif
CGWarpMouseCursorPosition(c);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment