]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_shared.c
Manage resetting the key event state on video reinitialization centrally.
[xonotic/darkplaces.git] / vid_shared.c
index 129641cfcfe1dd42586d710eac6143498123d6d8..7ee5b34f6d3d50fbef0dd0f6defe285d7a662787 100644 (file)
@@ -1850,6 +1850,7 @@ static int VID_Mode(int fullscreen, int width, int height, int bpp, float refres
 
 static void VID_OpenSystems(void)
 {
+       Key_ReleaseAll();
        R_Modules_Start();
        S_Startup();
 }
@@ -1858,6 +1859,7 @@ static void VID_CloseSystems(void)
 {
        S_Shutdown();
        R_Modules_Shutdown();
+       Key_ReleaseAll();
 }
 
 qboolean vid_commandlinecheck = true;