mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
[input] Make unbindall less aggressive
As it is a legacy command, it should affect only the legacy bindings (imt_drop_all is available for aggressively unbinding all keys).
This commit is contained in:
parent
55d3193b5f
commit
bc785ab2c2
1 changed files with 4 additions and 6 deletions
|
@ -748,15 +748,13 @@ Key_In_Unbind_f (void)
|
|||
static void
|
||||
Key_Unbindall_f (void)
|
||||
{
|
||||
keydest_t kd;
|
||||
imt_t *imt;
|
||||
int i;
|
||||
|
||||
for (kd = key_unfocused; kd < key_last; kd++) {
|
||||
for (imt = key_targets[kd].imts; imt; imt = imt->next) {
|
||||
for (i = 0; i < QFK_LAST; i++) {
|
||||
Key_SetBinding (imt, i, 0);
|
||||
}
|
||||
imt = Key_FindIMT ("imt_mod");
|
||||
if (imt) {
|
||||
for (i = 0; i < QFK_LAST; i++) {
|
||||
Key_SetBinding (imt, i, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue