1
0
Fork 0

- added property /controls/gear-down

This commit is contained in:
curt 2001-07-23 20:31:33 +00:00
parent 67091a4b13
commit cf73bc2365

View file

@ -46,6 +46,7 @@ void FGControls::reset_all()
set_rudder(0.0); set_rudder(0.0);
set_throttle(FGControls::ALL_ENGINES, 0.0); set_throttle(FGControls::ALL_ENGINES, 0.0);
throttle_idle = true; throttle_idle = true;
gear_down = true;
} }
@ -112,6 +113,9 @@ FGControls::bind ()
&FGControls::get_brake, &FGControls::set_brake); &FGControls::get_brake, &FGControls::set_brake);
fgSetArchivable(name); fgSetArchivable(name);
} }
fgTie("/controls/gear-down", this,
&FGControls::get_gear_down, &FGControls::set_gear_down);
fgSetArchivable("/controls/gear-down");
} }
@ -139,6 +143,7 @@ FGControls::unbind ()
sprintf(name, "/controls/brakes[%d]", index); sprintf(name, "/controls/brakes[%d]", index);
fgUntie(name); fgUntie(name);
} }
fgUntie("/controls/gear-down");
} }