mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Fix copy-paste error
This commit is contained in:
parent
8512133bb1
commit
2f2b3173e3
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ namespace MWInput
|
|||
if (SDL_IsTextInputActive() && // Little trick to check if key is printable
|
||||
( !(SDLK_SCANCODE_MASK & arg.keysym.sym) && std::isprint(arg.keysym.sym)))
|
||||
consumed = true;
|
||||
MWBase::Environment::get().getInputManager()->setJoystickLastUsed(!consumed);
|
||||
MWBase::Environment::get().getInputManager()->setPlayerControlsEnabled(!consumed);
|
||||
}
|
||||
if (arg.repeat)
|
||||
return;
|
||||
|
@ -79,7 +79,7 @@ namespace MWInput
|
|||
OIS::KeyCode kc = mInputWrapper->sdl2OISKeyCode(arg.keysym.sym);
|
||||
|
||||
if (!mInputBinder->detectingBindingState())
|
||||
MWBase::Environment::get().getInputManager()->setJoystickLastUsed(!MyGUI::InputManager::getInstance().injectKeyRelease(MyGUI::KeyCode::Enum(kc)));
|
||||
MWBase::Environment::get().getInputManager()->setPlayerControlsEnabled(!MyGUI::InputManager::getInstance().injectKeyRelease(MyGUI::KeyCode::Enum(kc)));
|
||||
mInputBinder->keyReleased(arg);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue