]> git.mxchange.org Git - flightgear.git/commitdiff
Remove the old built-in bindings for F8 and F10 (they can be done in
authordavid <david>
Sat, 18 Jan 2003 21:12:27 +0000 (21:12 +0000)
committerdavid <david>
Sat, 18 Jan 2003 21:12:27 +0000 (21:12 +0000)
keyboard.xml now).

src/Input/input.cxx

index 5bc5132dc38fcb25d01495b0c5fcd8df1c652a10..38aec103b8dbff75973604992ccea3bfb2736bc3 100644 (file)
@@ -310,30 +310,6 @@ FGInput::doKey (int k, int modifiers, int x, int y)
                     FGAutopilot::FG_TC_HEADING_LOCK );
             }
             return;
-        case 256+GLUT_KEY_F8: {// F8 toggles fog ... off fastest nicest...
-            const string &fog = fgGetString("/sim/rendering/fog");
-            if (fog == "disabled") {
-              fgSetString("/sim/rendering/fog", "fastest");
-              SG_LOG(SG_INPUT, SG_INFO, "Fog enabled, hint=fastest");
-            } else if (fog == "fastest") {
-              fgSetString("/sim/rendering/fog", "nicest");
-              SG_LOG(SG_INPUT, SG_INFO, "Fog enabled, hint=nicest");
-            } else if (fog == "nicest") {
-              fgSetString("/sim/rendering/fog", "disabled");
-              SG_LOG(SG_INPUT, SG_INFO, "Fog disabled");
-            } else {
-              fgSetString("/sim/rendering/fog", "disabled");
-              SG_LOG(SG_INPUT, SG_ALERT, "Unrecognized fog type "
-                     << fog << ", changed to 'disabled'");
-            }
-            return;
-        }
-        case 256+GLUT_KEY_F10: // F10 toggles menu on and off...
-            SG_LOG(SG_INPUT, SG_INFO, "Invoking call back function");
-#if defined(FG_OLD_MENUBAR)
-            guiToggleMenu();
-#endif
-            return;
         case 256+GLUT_KEY_F11: // F11 Altitude Dialog.
             SG_LOG(SG_INPUT, SG_INFO, "Invoking Altitude call back function");
             NewAltitude( NULL );