From e076e8a9bd3303cbce04d475ce9cdc0c2091df14 Mon Sep 17 00:00:00 2001 From: Digmaster Date: Tue, 9 Dec 2014 14:53:50 -0600 Subject: [PATCH] Fixed error when downgrading openmw versions --- extern/oics/ICSInputControlSystem.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/extern/oics/ICSInputControlSystem.cpp b/extern/oics/ICSInputControlSystem.cpp index 4db28d3f16..a8efd54bcb 100644 --- a/extern/oics/ICSInputControlSystem.cpp +++ b/extern/oics/ICSInputControlSystem.cpp @@ -579,7 +579,9 @@ namespace ICS binder.SetAttribute( "axis", ToString( 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); } @@ -592,7 +594,9 @@ namespace ICS binder.SetAttribute( "axis", ToString( 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); } @@ -605,7 +609,9 @@ namespace ICS binder.SetAttribute( "button", ToString( 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); } @@ -618,7 +624,9 @@ namespace ICS binder.SetAttribute( "button", ToString( 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); }