mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
Fixed error when downgrading openmw versions
This commit is contained in:
parent
95219a7936
commit
e076e8a9bd
1 changed files with 12 additions and 4 deletions
16
extern/oics/ICSInputControlSystem.cpp
vendored
16
extern/oics/ICSInputControlSystem.cpp
vendored
|
@ -579,7 +579,9 @@ namespace ICS
|
||||||
binder.SetAttribute( "axis", ToString<int>(
|
binder.SetAttribute( "axis", ToString<int>(
|
||||||
getJoystickAxisBinding(*o, Control/*::ControlChangingDirection*/::INCREASE)).c_str() );
|
getJoystickAxisBinding(*o, Control/*::ControlChangingDirection*/::INCREASE)).c_str() );
|
||||||
|
|
||||||
binder.SetAttribute( "direction", "INCREASE" );
|
binder.SetAttribute( "direction", "INCREASE" );
|
||||||
|
|
||||||
|
binder.SetAttribute( "deviceId", "1" ); //completely useless, but required for backwards compatability
|
||||||
|
|
||||||
control.InsertEndChild(binder);
|
control.InsertEndChild(binder);
|
||||||
}
|
}
|
||||||
|
@ -592,7 +594,9 @@ namespace ICS
|
||||||
binder.SetAttribute( "axis", ToString<int>(
|
binder.SetAttribute( "axis", ToString<int>(
|
||||||
getJoystickAxisBinding(*o, Control/*::ControlChangingDirection*/::DECREASE)).c_str() );
|
getJoystickAxisBinding(*o, Control/*::ControlChangingDirection*/::DECREASE)).c_str() );
|
||||||
|
|
||||||
binder.SetAttribute( "direction", "DECREASE" );
|
binder.SetAttribute( "direction", "DECREASE" );
|
||||||
|
|
||||||
|
binder.SetAttribute( "deviceId", "1" ); //completely useless, but required for backwards compatability
|
||||||
|
|
||||||
control.InsertEndChild(binder);
|
control.InsertEndChild(binder);
|
||||||
}
|
}
|
||||||
|
@ -605,7 +609,9 @@ namespace ICS
|
||||||
binder.SetAttribute( "button", ToString<unsigned int>(
|
binder.SetAttribute( "button", ToString<unsigned int>(
|
||||||
getJoystickButtonBinding(*o, Control/*::ControlChangingDirection*/::INCREASE)).c_str() );
|
getJoystickButtonBinding(*o, Control/*::ControlChangingDirection*/::INCREASE)).c_str() );
|
||||||
|
|
||||||
binder.SetAttribute( "direction", "INCREASE" );
|
binder.SetAttribute( "direction", "INCREASE" );
|
||||||
|
|
||||||
|
binder.SetAttribute( "deviceId", "1" ); //completely useless, but required for backwards compatability
|
||||||
|
|
||||||
control.InsertEndChild(binder);
|
control.InsertEndChild(binder);
|
||||||
}
|
}
|
||||||
|
@ -618,7 +624,9 @@ namespace ICS
|
||||||
binder.SetAttribute( "button", ToString<unsigned int>(
|
binder.SetAttribute( "button", ToString<unsigned int>(
|
||||||
getJoystickButtonBinding(*o, Control/*::ControlChangingDirection*/::DECREASE)).c_str() );
|
getJoystickButtonBinding(*o, Control/*::ControlChangingDirection*/::DECREASE)).c_str() );
|
||||||
|
|
||||||
binder.SetAttribute( "direction", "DECREASE" );
|
binder.SetAttribute( "direction", "DECREASE" );
|
||||||
|
|
||||||
|
binder.SetAttribute( "deviceId", "1" ); //completely useless, but required for backwards compatability
|
||||||
|
|
||||||
control.InsertEndChild(binder);
|
control.InsertEndChild(binder);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue