Ignore repeated keystrokes, except for text input events

pull/16/head
scrawl 12 years ago
parent f1ff9b69b3
commit 6958940131

@ -123,9 +123,11 @@ namespace SFO
mMouseListener->mouseReleased(evt.button, evt.button.button);
break;
case SDL_KEYDOWN:
if (!evt.key.repeat)
_handleKeyPress(evt.key);
break;
case SDL_KEYUP:
if (!evt.key.repeat)
mKeyboardListener->keyReleased(evt.key);
break;
case SDL_WINDOWEVENT:

Loading…
Cancel
Save