Allowed binds to execute commands.
This commit is contained in:
@@ -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]);
|
||||
}
|
Reference in New Issue
Block a user