]> git.mxchange.org Git - flightgear.git/blobdiff - src/Joystick/joystick.cxx
Swapped throttle and rudder axes.
[flightgear.git] / src / Joystick / joystick.cxx
index cc828053a7c5f7911b40e98f93f05d7045a4bae9..28810d97c4f3ce9bb16d3f9ac9f0e3d4e9d8d9b0 100644 (file)
@@ -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