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