Fix key repeating
This commit is contained in:
parent
f9ef0a99d6
commit
08bc4770cd
1 changed files with 0 additions and 5 deletions
|
|
@ -115,11 +115,6 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
|||
modifiers |= MODIFIER_SHIFT;
|
||||
}
|
||||
|
||||
// Ignore repeats
|
||||
if (event->repeat != 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Set keycode
|
||||
if (event->keysym.sym >= SDLK_0 && event->keysym.sym <= SDLK_9) {
|
||||
keyCode = (event->keysym.sym - SDLK_0) + VK_0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue