Mercurial > sdl-ios-xcode
changeset 12:34d956b20f75
Fix key repeat detection on newer X servers
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Sun, 29 Apr 2001 22:59:47 +0000 |
parents | 7b94b6379341 |
children | e30a8ce27c22 |
files | src/video/x11/SDL_x11events.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c Sat Apr 28 18:57:18 2001 +0000 +++ b/src/video/x11/SDL_x11events.c Sun Apr 29 22:59:47 2001 +0000 @@ -73,7 +73,7 @@ XPeekEvent(display, &peekevent); if ( (peekevent.type == KeyPress) && (peekevent.xkey.keycode == event->xkey.keycode) && - (peekevent.xkey.time == event->xkey.time) ) { + ((peekevent.xkey.time-event->xkey.time) < 2) ) { repeated = 1; XNextEvent(display, &peekevent); }