X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=keys.c;h=e93f83ac95504136e3605ce7a1ba0a15ae0faf67;hb=9ac6f1395459b9ab4093f690365ce1e3d62d0577;hp=d233471b1618fbcc929343cdd8f0d11070d47fce;hpb=2ca2a9595705a793c0f643c2f4fe13f1b8cf4b69;p=xonotic%2Fdarkplaces.git diff --git a/keys.c b/keys.c index d233471b..e93f83ac 100644 --- 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"); @@ -1989,14 +1990,3 @@ Key_ReleaseAll (void) // now all keys are guaranteed down (once the event queue is unblocked) // and only future events count } - -/* -=================== -Key_ClearStates -=================== -*/ -void -Key_ClearStates (void) -{ - memset(keydown, 0, sizeof(keydown)); -}