mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-27 06:12:47 +01:00
Reduce input lag (Emb) by handling all input events in stead of just one.
This commit is contained in:
@@ -252,7 +252,7 @@ void RetroFE::run()
|
|||||||
float lastTime = 0;
|
float lastTime = 0;
|
||||||
float deltaTime = 0;
|
float deltaTime = 0;
|
||||||
SDL_Event e;
|
SDL_Event e;
|
||||||
if (SDL_PollEvent(&e))
|
while (SDL_PollEvent(&e))
|
||||||
{
|
{
|
||||||
if(input_.update(e))
|
if(input_.update(e))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user