]> git.mxchange.org Git - flightgear.git/commitdiff
Fix bug with passing PUI keystrokes on to glut.
authorcurt <curt>
Sat, 29 May 1999 13:03:26 +0000 (13:03 +0000)
committercurt <curt>
Sat, 29 May 1999 13:03:26 +0000 (13:03 +0000)
Simulator/Main/GLUTkey.cxx

index 05b309ed031041269af9495ea3930f4bd244ee10..afda345830f760f0b78dbd15b0ab56f43fea3be6 100644 (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" );