From ae51ae6882489173759c3e7a85642033e7abe022 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 4 Jun 2003 14:02:23 +0000 Subject: [PATCH] Back out the joystick fixed timing patch for now --- src/Input/input.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 14e1dd4f5..c6700eb5e 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -692,13 +692,19 @@ FGInput::_update_keyboard (double dt) void FGInput::_update_joystick (double dt) { +#ifdef REMOVE_ME_AFTER_FLIGHTGEAR_0_9_2_RELEASE + static double _last_dt = 1.0; +#else static double _last_dt = 0.0; +#endif int modifiers = FG_MOD_NONE; // FIXME: any way to get the real ones? int i, j, buttons; // float js_val, diff; float axis_values[MAX_JOYSTICK_AXES]; +#ifdef REMOVE_ME_AFTER_FLIGHTGEAR_0_9_2_RELEASE _last_dt += dt; +#endif for ( i = 0; i < MAX_JOYSTICKS; i++) { @@ -753,10 +759,12 @@ FGInput::_update_joystick (double dt) } } +#if REMOVE_ME_AFTER_FLIGHTGEAR_0_9_2_RELEASE if (_last_dt > 0.05) { while(_last_dt >= 0.05) _last_dt -= 0.05; } +#endif } void