From f2f1a440141375aa60b63357c035c73aa643b191 Mon Sep 17 00:00:00 2001 From: molivier Date: Wed, 19 Nov 2003 07:50:53 +0000 Subject: [PATCH] ClearAllStates cleared the key states twice in vid_wgl.c, and vid_glx.c didn't do that when he closes its window (which caused missed key strokes with vid_restart and the video options menu) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3657 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_glx.c | 1 + vid_wgl.c | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/vid_glx.c b/vid_glx.c index 1e5bb3a9..000156b2 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -556,6 +556,7 @@ void VID_Shutdown(void) ctx = NULL; GL_CloseLibrary(); + Key_ClearStates (); } void signal_handler(int sig) diff --git a/vid_wgl.c b/vid_wgl.c index 2f98be1f..64fed039 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -431,14 +431,6 @@ ClearAllStates */ void ClearAllStates (void) { - int i; - -// send an up event for each key, to make sure the server clears them all - for (i=0 ; i<256 ; i++) - { - Key_Event (i, 0, false); - } - Key_ClearStates (); IN_ClearStates (); } -- 2.39.2