From 8fbcdd5aa90d6a2b7d867f32a203894b56d817c9 Mon Sep 17 00:00:00 2001 From: dcnieho Date: Fri, 24 Jan 2014 10:29:44 +0000 Subject: [PATCH] Forgot to reset modifiers once done with modifiers. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1663 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/blackberry/fg_main_blackberry.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/freeglut/freeglut/src/blackberry/fg_main_blackberry.c b/freeglut/freeglut/src/blackberry/fg_main_blackberry.c index 6fc6e7c..3314002 100644 --- a/freeglut/freeglut/src/blackberry/fg_main_blackberry.c +++ b/freeglut/freeglut/src/blackberry/fg_main_blackberry.c @@ -316,6 +316,8 @@ void fgPlatformProcessSingleEvent ( void ) INVOKE_WCB( *window, MultiButton, ( touchEvent.contact_id, touchEvent.x, touchEvent.y, 0, GLUT_UP ) ); INVOKE_WCB( *window, MultiEntry, ( touchEvent.contact_id, GLUT_LEFT ) ); } + + fgState.Modifiers = INVALID_MODIFIERS; break; } @@ -394,6 +396,8 @@ void fgPlatformProcessSingleEvent ( void ) fgState.MouseWheelTicks -= wheel; //TODO: Implement wheel support (based on fg_main_mswin... though it seems excessive) } + + fgState.Modifiers = INVALID_MODIFIERS; break; } @@ -432,6 +436,8 @@ void fgPlatformProcessSingleEvent ( void ) } else { LOGW("fgPlatformProcessSingleEvent: SCREEN_EVENT_KEYBOARD. Unhandled key event"); } + + fgState.Modifiers = INVALID_MODIFIERS; } break; }