From be0df74bfc3aca82522080ad62f08320bb24ea4d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 27 Oct 2016 13:35:43 -0400 Subject: Fix mouse button numbers on OSX --- pugl/pugl_osx.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pugl/pugl_osx.m') diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index e8ecc98..250e5d5 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -317,7 +317,7 @@ getModifiers(PuglView* view, NSEvent* ev) rloc.x, [[NSScreen mainScreen] frame].size.height - rloc.y, getModifiers(puglview, event), - [event buttonNumber] + [event buttonNumber] + 1 }; puglDispatchEvent(puglview, (PuglEvent*)&ev); } @@ -336,7 +336,7 @@ getModifiers(PuglView* view, NSEvent* ev) rloc.x, [[NSScreen mainScreen] frame].size.height - rloc.y, getModifiers(puglview, event), - [event buttonNumber] + [event buttonNumber] + 1 }; puglDispatchEvent(puglview, (PuglEvent*)&ev); [self updateTrackingAreas]; -- cgit v1.2.3