|
|
|
@ -32,13 +32,13 @@ namespace ICS
|
|
|
|
|
, DetectingBindingListener* detectingBindingListener
|
|
|
|
|
, InputControlSystemLog* log, size_t channelCount)
|
|
|
|
|
: mFileName(file)
|
|
|
|
|
, mLog(log)
|
|
|
|
|
, mDetectingBindingListener(detectingBindingListener)
|
|
|
|
|
, mDetectingBindingControl(NULL)
|
|
|
|
|
, mLog(log)
|
|
|
|
|
, mXmouseAxisBinded(false), mYmouseAxisBinded(false)
|
|
|
|
|
, mClientHeight(1)
|
|
|
|
|
, mClientWidth(1)
|
|
|
|
|
, mDetectingBindingDirection(Control::STOP)
|
|
|
|
|
, mXmouseAxisBinded(false), mYmouseAxisBinded(false)
|
|
|
|
|
, mClientWidth(1)
|
|
|
|
|
, mClientHeight(1)
|
|
|
|
|
{
|
|
|
|
|
ICS_LOG(" - Creating InputControlSystem - ");
|
|
|
|
|
|
|
|
|
@ -539,10 +539,10 @@ namespace ICS
|
|
|
|
|
}
|
|
|
|
|
binder.SetAttribute( "direction", "DECREASE" );
|
|
|
|
|
control.InsertEndChild(binder);
|
|
|
|
|
}
|
|
|
|
|
JoystickIDList::const_iterator it = mJoystickIDList.begin();
|
|
|
|
|
while(it!=mJoystickIDList.end())
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
JoystickIDList::const_iterator it = mJoystickIDList.begin();
|
|
|
|
|
while(it!=mJoystickIDList.end())
|
|
|
|
|
{
|
|
|
|
|
int deviceID = *it;
|
|
|
|
|
if(getJoystickAxisBinding(*o, deviceID, Control/*::ControlChangingDirection*/::INCREASE)
|
|
|
|
|
!= /*NamedAxis::*/UNASSIGNED)
|
|
|
|
@ -552,8 +552,8 @@ namespace ICS
|
|
|
|
|
binder.SetAttribute( "axis", ToString<int>(
|
|
|
|
|
getJoystickAxisBinding(*o, deviceID, Control/*::ControlChangingDirection*/::INCREASE)).c_str() );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "direction", "INCREASE" );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "direction", "INCREASE" );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "deviceId", deviceID ); //completely useless, but required for backwards compatability
|
|
|
|
|
|
|
|
|
|
control.InsertEndChild(binder);
|
|
|
|
@ -567,8 +567,8 @@ namespace ICS
|
|
|
|
|
binder.SetAttribute( "axis", ToString<int>(
|
|
|
|
|
getJoystickAxisBinding(*o, deviceID, Control/*::ControlChangingDirection*/::DECREASE)).c_str() );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "direction", "DECREASE" );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "direction", "DECREASE" );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "deviceId", deviceID ); //completely useless, but required for backwards compatability
|
|
|
|
|
|
|
|
|
|
control.InsertEndChild(binder);
|
|
|
|
@ -582,8 +582,8 @@ namespace ICS
|
|
|
|
|
binder.SetAttribute( "button", ToString<unsigned int>(
|
|
|
|
|
getJoystickButtonBinding(*o, deviceID, Control/*::ControlChangingDirection*/::INCREASE)).c_str() );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "direction", "INCREASE" );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "direction", "INCREASE" );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "deviceId", deviceID ); //completely useless, but required for backwards compatability
|
|
|
|
|
|
|
|
|
|
control.InsertEndChild(binder);
|
|
|
|
@ -597,13 +597,13 @@ namespace ICS
|
|
|
|
|
binder.SetAttribute( "button", ToString<unsigned int>(
|
|
|
|
|
getJoystickButtonBinding(*o, deviceID, Control/*::ControlChangingDirection*/::DECREASE)).c_str() );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "direction", "DECREASE" );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "direction", "DECREASE" );
|
|
|
|
|
|
|
|
|
|
binder.SetAttribute( "deviceId", deviceID ); //completely useless, but required for backwards compatability
|
|
|
|
|
|
|
|
|
|
control.InsertEndChild(binder);
|
|
|
|
|
}
|
|
|
|
|
it++;
|
|
|
|
|
}
|
|
|
|
|
it++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|