mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Fix controls window regression
This commit is contained in:
parent
0ee57effcc
commit
0240a6c38b
@ -697,7 +697,7 @@ namespace MWInput
|
||||
SDL_StopTextInput();
|
||||
|
||||
bool consumed = false;
|
||||
if (kc != OIS::KC_UNASSIGNED)
|
||||
if (kc != OIS::KC_UNASSIGNED && !mInputBinder->detectingBindingState())
|
||||
{
|
||||
consumed = MWBase::Environment::get().getWindowManager()->injectKeyPress(MyGUI::KeyCode::Enum(kc), 0);
|
||||
if (SDL_IsTextInputActive() && // Little trick to check if key is printable
|
||||
@ -726,7 +726,8 @@ namespace MWInput
|
||||
mJoystickLastUsed = false;
|
||||
OIS::KeyCode kc = mInputManager->sdl2OISKeyCode(arg.keysym.sym);
|
||||
|
||||
setPlayerControlsEnabled(!MyGUI::InputManager::getInstance().injectKeyRelease(MyGUI::KeyCode::Enum(kc)));
|
||||
if (!mInputBinder->detectingBindingState())
|
||||
setPlayerControlsEnabled(!MyGUI::InputManager::getInstance().injectKeyRelease(MyGUI::KeyCode::Enum(kc)));
|
||||
mInputBinder->keyReleased (arg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user