From 51d63e1b101c86ed5ae82dbff5d194ec57d3de28 Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Wed, 31 Aug 2016 08:45:49 +0200 Subject: [PATCH] Reduce input lag (Emb) by handling all input events in stead of just one. --- RetroFE/Source/RetroFE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RetroFE/Source/RetroFE.cpp b/RetroFE/Source/RetroFE.cpp index c6fc334..f38cd1a 100644 --- a/RetroFE/Source/RetroFE.cpp +++ b/RetroFE/Source/RetroFE.cpp @@ -252,7 +252,7 @@ void RetroFE::run() float lastTime = 0; float deltaTime = 0; SDL_Event e; - if (SDL_PollEvent(&e)) + while (SDL_PollEvent(&e)) { if(input_.update(e)) {