|
|
@ -917,8 +917,8 @@ namespace MWInput
|
|
|
|
void InputManager::keyBindingDetected(ICS::InputControlSystem* ICS, ICS::Control* control
|
|
|
|
void InputManager::keyBindingDetected(ICS::InputControlSystem* ICS, ICS::Control* control
|
|
|
|
, OIS::KeyCode key, ICS::Control::ControlChangingDirection direction)
|
|
|
|
, OIS::KeyCode key, ICS::Control::ControlChangingDirection direction)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//Disallow binding escape key
|
|
|
|
//Disallow binding escape key, and unassigned keys
|
|
|
|
if(key==OIS::KC_ESCAPE)
|
|
|
|
if(key==OIS::KC_ESCAPE || key==OIS::KC_UNASSIGNED)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
clearAllBindings(control);
|
|
|
|
clearAllBindings(control);
|
|
|
|