1
0
Fork 0

Added keyboard support for flap control.

This commit is contained in:
curt 1999-10-29 18:09:04 +00:00
parent cd49be7182
commit 4c92fd1418

View 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++;