mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-06 15:51:25 +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;
|
key = K_KP5;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case XK_Scroll_Lock:
|
||||||
|
key = K_SCROLLOCK;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case XK_Num_Lock:
|
||||||
|
key = K_NUMLOCK;
|
||||||
|
break;
|
||||||
|
|
||||||
case XK_Insert:
|
case XK_Insert:
|
||||||
key = K_INSERT;
|
key = K_INSERT;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -795,10 +795,10 @@ Key_In_Bind (const char *imt, const char *key, const char *cmd)
|
||||||
|
|
||||||
if (!cmd) {
|
if (!cmd) {
|
||||||
if (Key_GetBinding(t, b))
|
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));
|
Key_GetBinding(t, b));
|
||||||
else
|
else
|
||||||
Con_Printf ("\"%s\"[\"%s\"] is not bound\n", key, imt);
|
Con_Printf ("%s %s is not bound\n", imt, key);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Key_SetBinding (t, b, cmd);
|
Key_SetBinding (t, b, cmd);
|
||||||
|
|
Loading…
Reference in a new issue