|
|
|
@ -180,17 +180,14 @@ namespace ICS
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if(mDetectingBindingListener)
|
|
|
|
|
{
|
|
|
|
|
mDetectingBindingListener->joystickButtonBindingDetected(this,
|
|
|
|
|
mDetectingBindingControl, evt.button, mDetectingBindingDirection);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InputControlSystem::buttonReleased(const SDL_ControllerButtonEvent &evt)
|
|
|
|
|
{
|
|
|
|
|
if(mActive)
|
|
|
|
|
{
|
|
|
|
|
if(!mDetectingBindingControl)
|
|
|
|
|
{
|
|
|
|
|
ControlsButtonBinderMapType::const_iterator it = mControlsJoystickButtonBinderMap.find(evt.button);
|
|
|
|
|
if(it != mControlsJoystickButtonBinderMap.end())
|
|
|
|
@ -198,6 +195,12 @@ namespace ICS
|
|
|
|
|
it->second.control->setChangingDirection(Control::STOP);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if(mDetectingBindingListener)
|
|
|
|
|
{
|
|
|
|
|
mDetectingBindingListener->joystickButtonBindingDetected(this,
|
|
|
|
|
mDetectingBindingControl, evt.button, mDetectingBindingDirection);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InputControlSystem::axisMoved(const SDL_ControllerAxisEvent &evt)
|
|
|
|
|