mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
make (in_)bind's output a little more intuitive and support num lock and
scroll lock in x11.
This commit is contained in:
parent
cd338f47f2
commit
1af4fe4b79
2 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue