From 770e52360966ef620d510107b2c420db654a17e0 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Mon, 20 Jul 2020 17:35:01 +0000 Subject: [PATCH] cl_main: Get new input events even if we're supposed to sleep git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12849 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cl_main.c b/cl_main.c index ef670d16..31ad52bc 100644 --- a/cl_main.c +++ b/cl_main.c @@ -2723,6 +2723,11 @@ double CL_Frame (double time) CL_VM_PreventInformationLeaks(); + // get new key events + Key_EventQueue_Unblock(); + SndSys_SendKeyEvents(); + Sys_SendKeyEvents(); + if((cl_timer += time) < 0) return cl_timer; @@ -2732,11 +2737,6 @@ double CL_Frame (double time) if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo || ((vid_activewindow ? cl_maxfps : cl_maxidlefps).value < 1))) { - // get new key events - Key_EventQueue_Unblock(); - SndSys_SendKeyEvents(); - Sys_SendKeyEvents(); - R_TimeReport("---"); Collision_Cache_NewFrame(); R_TimeReport("photoncache"); -- 2.39.2