mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 00:39:58 +00:00
Allow shoulder buttons to work when text input is active
This commit is contained in:
parent
8027c1e662
commit
15c6e90bdb
@ -277,11 +277,11 @@ namespace MWInput
|
||||
key = MyGUI::KeyCode::Apostrophe;
|
||||
break;
|
||||
case SDL_CONTROLLER_BUTTON_LEFTSHOULDER:
|
||||
key = MyGUI::KeyCode::Period;
|
||||
break;
|
||||
MWBase::Environment::get().getWindowManager()->injectKeyPress(MyGUI::KeyCode::Period, 0, false);
|
||||
return true;
|
||||
case SDL_CONTROLLER_BUTTON_RIGHTSHOULDER:
|
||||
key = MyGUI::KeyCode::Slash;
|
||||
break;
|
||||
MWBase::Environment::get().getWindowManager()->injectKeyPress(MyGUI::KeyCode::Slash, 0, false);
|
||||
return true;
|
||||
case SDL_CONTROLLER_BUTTON_LEFTSTICK:
|
||||
mGamepadGuiCursorEnabled = !mGamepadGuiCursorEnabled;
|
||||
MWBase::Environment::get().getWindowManager()->setCursorActive(mGamepadGuiCursorEnabled);
|
||||
|
Loading…
x
Reference in New Issue
Block a user