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,
|
||||
kCGEventMouseMoved,
|
||||
pos,
|
||||
/*we don't care about this: */0);
|
||||
/* we don't care about this: */ kCGMouseButtonLeft);
|
||||
CGEventPost(kCGHIDEventTap, event);
|
||||
CFRelease(event);
|
||||
// This is a workaround to deprecated CGSetLocalEventsSuppressionInterval.
|
||||
|
Loading…
Reference in New Issue
Block a user