diff --git a/src/uxnemu.c b/src/uxnemu.c old mode 100644 new mode 100755 index 75843fc..a183126 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -131,8 +131,10 @@ stdin_handler(void *p) SDL_Event event; USED(p); event.type = stdin_event; - while(read(0, &event.cbutton.button, 1) > 0 && SDL_PushEvent(&event) >= 0) - ; + while(read(0, &event.cbutton.button, 1) > 0){ + while(SDL_PushEvent(&event) < 0) + SDL_Delay(25); /* slow down - the queue is most likely full */ + } return 0; }