Use kCGMouseButtonLeft instead of 0 for CGEventCreateMouseEvent to fix a compiler error

This commit is contained in:
Glenn Smith 2015-12-31 12:38:01 -05:00 committed by Lukas Dürrenberger
parent 043fb83cd8
commit fe9b9c0cc7

View File

@ -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.