]> 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 843707b48f7b9ba2f9ea03cd7ca4b62fdad2d620..7503c12fc5a5a86bc6ddd2acd1c30d1b5a586dcc 100644 (file)
@@ -1941,6 +1941,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();
 }
@@ -1949,6 +1950,7 @@ static void VID_CloseSystems(void)
 {
        S_Shutdown();
        R_Modules_Shutdown();
+       Key_ReleaseAll();
 }
 
 qboolean vid_commandlinecheck = true;