From 4a103a1de39c47db7f13f302ff0a486416d98844 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 8 Jan 2021 21:47:33 +0100 Subject: [PATCH] process input when no frame is rendered --- core/rend/mainui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/rend/mainui.cpp b/core/rend/mainui.cpp index f5fe7831e..e97e7f3ba 100644 --- a/core/rend/mainui.cpp +++ b/core/rend/mainui.cpp @@ -28,6 +28,8 @@ bool mainui_enabled; int renderer_changed = -1; // Signals the renderer thread to switch renderer u32 MainFrameCount; +void UpdateInputState(); + bool mainui_rend_frame() { os_DoEvents(); @@ -43,7 +45,10 @@ bool mainui_rend_frame() else { if (!rend_single_frame(mainui_enabled)) + { + UpdateInputState(); return false; + } } MainFrameCount++;