Swapped throttle and rudder axes.
This commit is contained in:
parent
96d3d7ca26
commit
252cb48f44
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ int fgJoystickRead( void ) {
|
||||||
|
|
||||||
// Added by William Riley -- riley@technologist.com
|
// Added by William Riley -- riley@technologist.com
|
||||||
if ( js0->getNumAxes() >= 3 ) {
|
if ( js0->getNumAxes() >= 3 ) {
|
||||||
throttle_tmp=(-js_ax0[2] + 1) / 2;
|
throttle_tmp=(-js_ax0[3] + 1) / 2;
|
||||||
|
|
||||||
if(sync_throttle == true) {
|
if(sync_throttle == true) {
|
||||||
if (fabs(controls.get_throttle(0)-throttle_tmp)
|
if (fabs(controls.get_throttle(0)-throttle_tmp)
|
||||||
|
@ -235,7 +235,7 @@ int fgJoystickRead( void ) {
|
||||||
if ( current_options.get_auto_coordination() !=
|
if ( current_options.get_auto_coordination() !=
|
||||||
fgOPTIONS::FG_AUTO_COORD_ENABLED )
|
fgOPTIONS::FG_AUTO_COORD_ENABLED )
|
||||||
{
|
{
|
||||||
controls.set_rudder( js_ax0[3] );
|
controls.set_rudder( js_ax0[2] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// End of William's code
|
// End of William's code
|
||||||
|
|
Loading…
Add table
Reference in a new issue