Input bind complete.
This commit is contained in:
@@ -17,11 +17,12 @@ void cmdBind(const consolecmdexec_t *exec) {
|
||||
|
||||
if(exec->argc == 1) {
|
||||
consolePrint("TODO: Show binds");
|
||||
// consolePrint("Current binds:");
|
||||
// inputbinddata_t *data = INPUT.binds;
|
||||
// do {
|
||||
return;
|
||||
}
|
||||
|
||||
// } while(data < INPUT.binds + INPUT_BIND_COUNT);
|
||||
inputbutton_t button = inputButtonGetByName(exec->argv[0]);
|
||||
if(button.type == INPUT_BUTTON_TYPE_NONE) {
|
||||
consolePrint("Unknown button \"%s\"", exec->argv[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -31,5 +32,7 @@ void cmdBind(const consolecmdexec_t *exec) {
|
||||
return;
|
||||
}
|
||||
|
||||
consolePrint("test");
|
||||
// By default I unbind all.
|
||||
inputUnbindButton(button);
|
||||
inputBind(bind, button);
|
||||
}
|
Reference in New Issue
Block a user