]> git.mxchange.org Git - flightgear.git/commitdiff
Added keyboard support for flap control.
authorcurt <curt>
Fri, 29 Oct 1999 18:09:04 +0000 (18:09 +0000)
committercurt <curt>
Fri, 29 Oct 1999 18:09:04 +0000 (18:09 +0000)
src/Main/keyboard.cxx

index 825f0860eba402a97edc3ea45d70556511838688..1be3fb9a3454f8920bd61abfb27f54c4905cba75 100644 (file)
@@ -263,6 +263,16 @@ void GLUTkey(unsigned char k, int x, int y) {
                controls.move_throttle( FGControls::ALL_ENGINES, -0.01 );
            }
            return;
+       case 91: // [ key
+           controls.move_flaps(-0.34);
+           FG_LOG( FG_INPUT, FG_INFO,
+                   "Set flaps to " << controls.get_flaps() );
+           return;
+       case 93: // ] key
+           controls.move_flaps(0.34);
+           FG_LOG( FG_INPUT, FG_INFO,
+                   "Set flaps to " << controls.get_flaps() );
+           return;
        case 97: // a key
            speed = current_options.get_speed_up();
            speed++;