Ignore keyrepeat events in SDL2
This commit is contained in:
@@ -939,9 +939,14 @@ VControl_HandleEvent (const SDL_Event *e)
|
||||
switch (e->type)
|
||||
{
|
||||
case SDL_KEYDOWN:
|
||||
#if SDL_MAJOR_VERSION > 1
|
||||
if (!e->key.repeat)
|
||||
#endif
|
||||
{
|
||||
VControl_ProcessKeyDown (e->key.keysym.sym);
|
||||
last_interesting = *e;
|
||||
event_ready = 1;
|
||||
}
|
||||
break;
|
||||
case SDL_KEYUP:
|
||||
VControl_ProcessKeyUp (e->key.keysym.sym);
|
||||
|
||||
Reference in New Issue
Block a user