]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Add an in_releaseall command for debugging/working around stuck keys.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 5 Apr 2018 20:42:33 +0000 (20:42 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Fri, 3 Aug 2018 17:22:06 +0000 (17:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12363 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f4fad9dbeda77dc25174c242f04c5abe88fafaf9

keys.c

diff --git a/keys.c b/keys.c
index 2f91c06c453c59907d1a75266ea5ea8c9d3656c8..e93f83ac95504136e3605ce7a1ba0a15ae0faf67 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -1626,6 +1626,7 @@ Key_Init (void)
        Cmd_AddCommand ("in_unbind", Key_In_Unbind_f, "removes command on the specified key in the selected bindmap");
        Cmd_AddCommand ("in_bindlist", Key_In_BindList_f, "bindlist: displays bound keys for all bindmaps, or the given bindmap");
        Cmd_AddCommand ("in_bindmap", Key_In_Bindmap_f, "selects active foreground and background (used only if a key is not bound in the foreground) bindmaps for typing");
+       Cmd_AddCommand ("in_releaseall", Key_ReleaseAll, "releases all currently pressed keys (debug command)");
 
        Cmd_AddCommand ("bind", Key_Bind_f, "binds a command to the specified key in bindmap 0");
        Cmd_AddCommand ("unbind", Key_Unbind_f, "removes a command on the specified key in bindmap 0");