Key repeat is handled server-side, so don't send repeat events
This commit is contained in:
parent
fe6a1244ed
commit
93ea437760
1 changed files with 6 additions and 0 deletions
|
|
@ -329,6 +329,12 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event->repeat) {
|
||||||
|
// Ignore repeat key down events
|
||||||
|
SDL_assert(event->state == SDL_PRESSED);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Set modifier flags
|
// Set modifier flags
|
||||||
modifiers = 0;
|
modifiers = 0;
|
||||||
if (event->keysym.mod & KMOD_CTRL) {
|
if (event->keysym.mod & KMOD_CTRL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue