mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 06:12:19 +00:00
- fixed excess keyboard events in SDL backend
https://forum.zdoom.org/viewtopic.php?t=61104
This commit is contained in:
parent
6e4c0fc416
commit
0342bf532d
1 changed files with 5 additions and 0 deletions
|
@ -407,6 +407,11 @@ void MessagePump (const SDL_Event &sev)
|
|||
case SDL_KEYUP:
|
||||
if (!GUICapture)
|
||||
{
|
||||
if (sev.key.repeat)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
event.type = sev.type == SDL_KEYDOWN ? EV_KeyDown : EV_KeyUp;
|
||||
|
||||
// Try to look up our key mapped key for conversion to DirectInput.
|
||||
|
|
Loading…
Reference in a new issue