1
0
Fork 0

Fix bug with passing PUI keystrokes on to glut.

This commit is contained in:
curt 1999-05-29 13:03:26 +00:00
parent d72a6a0bd4
commit 9d78e32da8

View file

@ -83,7 +83,9 @@ void GLUTkey(unsigned char k, int x, int y) {
w = &current_weather;
FG_LOG( FG_INPUT, FG_DEBUG, "Key hit = " << k );
puKeyboard(k, PU_DOWN );
if ( puKeyboard(k, PU_DOWN) ) {
return;
}
if ( GLUT_ACTIVE_ALT && glutGetModifiers() ) {
FG_LOG( FG_INPUT, FG_DEBUG, " SHIFTED" );
@ -306,7 +308,10 @@ void GLUTspecialkey(int k, int x, int y) {
v = &current_view;
FG_LOG( FG_INPUT, FG_DEBUG, "Special key hit = " << k );
puKeyboard(k + PU_KEY_GLUT_SPECIAL_OFFSET, PU_DOWN);
if ( puKeyboard(k + PU_KEY_GLUT_SPECIAL_OFFSET, PU_DOWN) ) {
return;
}
if ( GLUT_ACTIVE_SHIFT && glutGetModifiers() ) {
FG_LOG( FG_INPUT, FG_DEBUG, " SHIFTED" );