|
|
@ -65,7 +65,7 @@ namespace MWInput
|
|
|
|
|
|
|
|
|
|
|
|
Ogre::RenderWindow* window = ogre.getWindow ();
|
|
|
|
Ogre::RenderWindow* window = ogre.getWindow ();
|
|
|
|
|
|
|
|
|
|
|
|
mInputManager = new SFO::InputWrapper(mOgre.getSDLWindow());
|
|
|
|
mInputManager = new SFO::InputWrapper(mOgre.getSDLWindow(), mOgre.getWindow());
|
|
|
|
mInputManager->setMouseEventCallback (this);
|
|
|
|
mInputManager->setMouseEventCallback (this);
|
|
|
|
mInputManager->setKeyboardEventCallback (this);
|
|
|
|
mInputManager->setKeyboardEventCallback (this);
|
|
|
|
mInputManager->setWindowEventCallback(this);
|
|
|
|
mInputManager->setWindowEventCallback(this);
|
|
|
@ -912,9 +912,9 @@ namespace MWInput
|
|
|
|
void InputManager::keyBindingDetected(ICS::InputControlSystem* ICS, ICS::Control* control
|
|
|
|
void InputManager::keyBindingDetected(ICS::InputControlSystem* ICS, ICS::Control* control
|
|
|
|
, SDL_Keycode key, ICS::Control::ControlChangingDirection direction)
|
|
|
|
, SDL_Keycode key, ICS::Control::ControlChangingDirection direction)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//Disallow binding escape key, and unassigned keys
|
|
|
|
//Disallow binding escape key
|
|
|
|
if(key==OIS::KC_ESCAPE || key==OIS::KC_UNASSIGNED)
|
|
|
|
if(key==SDLK_ESCAPE)
|
|
|
|
return
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
clearAllBindings(control);
|
|
|
|
clearAllBindings(control);
|
|
|
|
ICS::DetectingBindingListener::keyBindingDetected (ICS, control, key, direction);
|
|
|
|
ICS::DetectingBindingListener::keyBindingDetected (ICS, control, key, direction);
|
|
|
|