correct return logic to fix back button bug

This commit is contained in:
Isaac0-dev 2025-06-04 10:16:41 +10:00
parent 65b67ad9fa
commit c939d9c925

View file

@ -438,6 +438,9 @@ void djui_interactable_update(void) {
} else if ((padButtons & PAD_BUTTON_B) && !(sLastInteractablePad.button & PAD_BUTTON_B)) {
// pressed back button on controller
djui_panel_back();
sLastInteractablePad = gInteractablePad;
sLastMouseButtons = mouseButtons;
return;
} else if ((padButtons & PAD_BUTTON_START) && !(sLastInteractablePad.button & PAD_BUTTON_START)) {
// pressed start button