From fe9b9c0cc78375b6ea74d56682e7751997db5a6e Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 31 Dec 2015 12:38:01 -0500 Subject: [PATCH] Use kCGMouseButtonLeft instead of 0 for CGEventCreateMouseEvent to fix a compiler error --- src/SFML/Window/OSX/InputImpl.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/OSX/InputImpl.mm b/src/SFML/Window/OSX/InputImpl.mm index f0e8ee440..a4087c6bf 100644 --- a/src/SFML/Window/OSX/InputImpl.mm +++ b/src/SFML/Window/OSX/InputImpl.mm @@ -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.