Skip to content

Commit

Permalink
fix OSX/pugl
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Nov 5, 2013
1 parent 4dddec7 commit 138d04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pugl/pugl_osx.m
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ - (void) keyUp:(NSEvent*)event
- (void) flagsChanged:(NSEvent*)event
{
if (puglview->specialFunc) {
const unsigned mods = getModifiers(puglview, [event modifierFlags]);
const unsigned mods = getModifiers(puglview, event);
if ((mods & PUGL_MOD_SHIFT) != (puglview->mods & PUGL_MOD_SHIFT)) {
puglview->specialFunc(puglview, mods & PUGL_MOD_SHIFT, PUGL_KEY_SHIFT);
} else if ((mods & PUGL_MOD_CTRL) != (puglview->mods & PUGL_MOD_CTRL)) {
Expand Down

0 comments on commit 138d04e

Please sign in to comment.