Forgot to reset modifiers once done with modifiers.

This commit is contained in:
Rcmaniac25 2013-09-10 18:34:07 -04:00
parent 13e00879cf
commit 1fa4c3f5cf

View File

@ -316,6 +316,8 @@ void fgPlatformProcessSingleEvent ( void )
INVOKE_WCB( *window, MultiButton, ( touchEvent.contact_id, touchEvent.x, touchEvent.y, 0, GLUT_UP ) ); INVOKE_WCB( *window, MultiButton, ( touchEvent.contact_id, touchEvent.x, touchEvent.y, 0, GLUT_UP ) );
INVOKE_WCB( *window, MultiEntry, ( touchEvent.contact_id, GLUT_LEFT ) ); INVOKE_WCB( *window, MultiEntry, ( touchEvent.contact_id, GLUT_LEFT ) );
} }
fgState.Modifiers = INVALID_MODIFIERS;
break; break;
} }
@ -394,6 +396,8 @@ void fgPlatformProcessSingleEvent ( void )
fgState.MouseWheelTicks -= wheel; fgState.MouseWheelTicks -= wheel;
//TODO: Implement wheel support (based on fg_main_mswin... though it seems excessive) //TODO: Implement wheel support (based on fg_main_mswin... though it seems excessive)
} }
fgState.Modifiers = INVALID_MODIFIERS;
break; break;
} }
@ -432,6 +436,8 @@ void fgPlatformProcessSingleEvent ( void )
} else { } else {
LOGW("fgPlatformProcessSingleEvent: SCREEN_EVENT_KEYBOARD. Unhandled key event"); LOGW("fgPlatformProcessSingleEvent: SCREEN_EVENT_KEYBOARD. Unhandled key event");
} }
fgState.Modifiers = INVALID_MODIFIERS;
} }
break; break;
} }