(svn r7153) -Fix [FS#279]: Some keyboard events possibly lost under high CPU load, handle

keyboard input in place instead of global variables magic. (KUDr)
This commit is contained in:
Darkvater
2006-11-15 19:35:52 +00:00
parent 791d20a011
commit eaddac35be
6 changed files with 27 additions and 17 deletions

View File

@@ -380,9 +380,8 @@ static int PollEvent(void)
(ev.key.keysym.sym == SDLK_RETURN || ev.key.keysym.sym == SDLK_f)) {
ToggleFullScreen(!_fullscreen);
} else {
_pressed_key = ConvertSdlKeyIntoMy(&ev.key.keysym);
HandleKeypress(ConvertSdlKeyIntoMy(&ev.key.keysym));
}
break;
case SDL_VIDEORESIZE: {