mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
fix djui console spam
This commit is contained in:
parent
c939d9c925
commit
ecbb911367
1 changed files with 6 additions and 6 deletions
|
|
@ -198,12 +198,6 @@ bool djui_interactable_on_key_down(int scancode) {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!gDjuiChatBoxFocus) {
|
||||
for (int i = 0; i < MAX_BINDS; i++) {
|
||||
if (scancode == (int)configKeyConsole[i]) { djui_console_toggle(); break; }
|
||||
}
|
||||
}
|
||||
|
||||
bool keyFocused = (gInteractableFocus != NULL)
|
||||
&& (gInteractableFocus->interactable != NULL)
|
||||
&& (gInteractableFocus->interactable->on_key_down != NULL);
|
||||
|
|
@ -289,6 +283,12 @@ void djui_interactable_on_key_up(int scancode) {
|
|||
&& (gInteractableFocus->interactable != NULL)
|
||||
&& (gInteractableFocus->interactable->on_key_up != NULL);
|
||||
|
||||
if (!gDjuiChatBoxFocus) {
|
||||
for (int i = 0; i < MAX_BINDS; i++) {
|
||||
if (scancode == (int)configKeyConsole[i]) { djui_console_toggle(); break; }
|
||||
}
|
||||
}
|
||||
|
||||
if (gDjuiPlayerList != NULL || gDjuiModList != NULL) {
|
||||
for (int i = 0; i < MAX_BINDS; i++) {
|
||||
if (scancode == (int)configKeyPlayerList[i]) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue