Allowed binds to execute commands.

This commit is contained in:
2025-09-11 12:58:04 -05:00
parent fe9af039fc
commit 8b20f0bf31
13 changed files with 244 additions and 251 deletions

View File

@@ -26,13 +26,5 @@ void cmdBind(const consolecmdexec_t *exec) {
return;
}
inputbind_t bind = inputBindGetByName(exec->argv[1]);
if(bind == INPUT_BIND_COUNT) {
consolePrint("Unknown bind \"%s\"", exec->argv[1]);
return;
}
// By default I unbind all.
inputUnbindButton(button);
inputBind(bind, button);
inputBind(button, exec->argv[1]);
}