mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Use kCGMouseButtonLeft instead of 0 for CGEventCreateMouseEvent to fix a compiler error
This commit is contained in:
parent
043fb83cd8
commit
fe9b9c0cc7
@ -185,7 +185,7 @@ void InputImpl::setMousePosition(const Vector2i& position)
|
|||||||
CGEventRef event = CGEventCreateMouseEvent(NULL,
|
CGEventRef event = CGEventCreateMouseEvent(NULL,
|
||||||
kCGEventMouseMoved,
|
kCGEventMouseMoved,
|
||||||
pos,
|
pos,
|
||||||
/*we don't care about this: */0);
|
/* we don't care about this: */ kCGMouseButtonLeft);
|
||||||
CGEventPost(kCGHIDEventTap, event);
|
CGEventPost(kCGHIDEventTap, event);
|
||||||
CFRelease(event);
|
CFRelease(event);
|
||||||
// This is a workaround to deprecated CGSetLocalEventsSuppressionInterval.
|
// This is a workaround to deprecated CGSetLocalEventsSuppressionInterval.
|
||||||
|
Loading…
Reference in New Issue
Block a user