mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Ignore repeated keystrokes, except for text input events
This commit is contained in:
parent
f1ff9b69b3
commit
6958940131
1 changed files with 4 additions and 2 deletions
2
extern/sdl4ogre/sdlinputwrapper.cpp
vendored
2
extern/sdl4ogre/sdlinputwrapper.cpp
vendored
|
@ -123,9 +123,11 @@ namespace SFO
|
||||||
mMouseListener->mouseReleased(evt.button, evt.button.button);
|
mMouseListener->mouseReleased(evt.button, evt.button.button);
|
||||||
break;
|
break;
|
||||||
case SDL_KEYDOWN:
|
case SDL_KEYDOWN:
|
||||||
|
if (!evt.key.repeat)
|
||||||
_handleKeyPress(evt.key);
|
_handleKeyPress(evt.key);
|
||||||
break;
|
break;
|
||||||
case SDL_KEYUP:
|
case SDL_KEYUP:
|
||||||
|
if (!evt.key.repeat)
|
||||||
mKeyboardListener->keyReleased(evt.key);
|
mKeyboardListener->keyReleased(evt.key);
|
||||||
break;
|
break;
|
||||||
case SDL_WINDOWEVENT:
|
case SDL_WINDOWEVENT:
|
||||||
|
|
Loading…
Reference in a new issue