make (in_)bind's output a little more intuitive and support num lock and

scroll lock in x11.
This commit is contained in:
Bill Currie 2001-08-20 02:06:55 +00:00
parent cd338f47f2
commit 1af4fe4b79
2 changed files with 10 additions and 2 deletions

View file

@ -261,6 +261,14 @@ XLateKey (XKeyEvent * ev, int *k, int *u)
key = K_KP5;
break;
case XK_Scroll_Lock:
key = K_SCROLLOCK;
break;
case XK_Num_Lock:
key = K_NUMLOCK;
break;
case XK_Insert:
key = K_INSERT;
break;

View file

@ -795,10 +795,10 @@ Key_In_Bind (const char *imt, const char *key, const char *cmd)
if (!cmd) {
if (Key_GetBinding(t, b))
Con_Printf ("\"%s\"[\"%s\"] = \"%s\"\n", key, imt,
Con_Printf ("%s %s \"%s\"\n", imt, key,
Key_GetBinding(t, b));
else
Con_Printf ("\"%s\"[\"%s\"] is not bound\n", key, imt);
Con_Printf ("%s %s is not bound\n", imt, key);
return;
}
Key_SetBinding (t, b, cmd);