From 252cb48f44e928368d5d81a2a3ef4ab3867f620e Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 30 May 2000 17:23:57 +0000 Subject: [PATCH] Swapped throttle and rudder axes. --- src/Joystick/joystick.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Joystick/joystick.cxx b/src/Joystick/joystick.cxx index cc828053a..28810d97c 100644 --- a/src/Joystick/joystick.cxx +++ b/src/Joystick/joystick.cxx @@ -217,7 +217,7 @@ int fgJoystickRead( void ) { // Added by William Riley -- riley@technologist.com if ( js0->getNumAxes() >= 3 ) { - throttle_tmp=(-js_ax0[2] + 1) / 2; + throttle_tmp=(-js_ax0[3] + 1) / 2; if(sync_throttle == true) { if (fabs(controls.get_throttle(0)-throttle_tmp) @@ -235,7 +235,7 @@ int fgJoystickRead( void ) { if ( current_options.get_auto_coordination() != fgOPTIONS::FG_AUTO_COORD_ENABLED ) { - controls.set_rudder( js_ax0[3] ); + controls.set_rudder( js_ax0[2] ); } } // End of William's code -- 2.39.5