process input when no frame is rendered

This commit is contained in:
Flyinghead 2021-01-08 21:47:33 +01:00
parent 36451614d2
commit 4a103a1de3
1 changed files with 5 additions and 0 deletions

View File

@ -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++;