From 4c92fd14181c699bb7f437d3f44bfa20a9c837ca Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 29 Oct 1999 18:09:04 +0000 Subject: [PATCH] Added keyboard support for flap control. --- src/Main/keyboard.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Main/keyboard.cxx b/src/Main/keyboard.cxx index 825f0860e..1be3fb9a3 100644 --- a/src/Main/keyboard.cxx +++ b/src/Main/keyboard.cxx @@ -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++;