summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-09-06 01:24:19 -0700
committerGitHub <noreply@github.com>2024-09-06 10:24:19 +0200
commit3faa1c6acce3b317ee23f153d17f0ea66a8f1c79 (patch)
treec08960694a02b5d79a3d6de7e44113b8d0abbbfe /src/code
parentbb6177e936c535817eded229d1023d0556a67519 (diff)
Move button macros to include/controller.h (#2138)
* Move button macros to include/controller.h * Fix z_mag button ordering
Diffstat (limited to 'src/code')
-rw-r--r--src/code/fault_n64.c2
-rw-r--r--src/code/z_debug.c2
-rw-r--r--src/code/z_frame_advance.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/code/fault_n64.c b/src/code/fault_n64.c
index 5a8dd9d1d..92fd0cc8d 100644
--- a/src/code/fault_n64.c
+++ b/src/code/fault_n64.c
@@ -109,7 +109,7 @@ void Fault_WaitForInputImpl(void) {
Fault_SleepImpl(0x10);
PadMgr_RequestPadData(&gPadMgr, inputs, 0);
btnPress = inputs[0].press.button;
- } while (!CHECK_BTN_ANY(btnPress, (BTN_A | BTN_B | BTN_START | BTN_CRIGHT | BTN_CLEFT | BTN_CDOWN | BTN_CUP)));
+ } while (!CHECK_BTN_ANY(btnPress, (BTN_A | BTN_B | BTN_START | BTN_CUP | BTN_CDOWN | BTN_CLEFT | BTN_CRIGHT)));
}
void Fault_WaitForInput(void) {
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index d668f490a..963e934ff 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -168,7 +168,7 @@ void Regs_UpdateEditor(Input* input) {
s32 increment;
s32 i;
- dPadInputCur = input->cur.button & (BTN_DUP | BTN_DLEFT | BTN_DRIGHT | BTN_DDOWN);
+ dPadInputCur = input->cur.button & (BTN_DUP | BTN_DDOWN | BTN_DLEFT | BTN_DRIGHT);
if (CHECK_BTN_ALL(input->cur.button, BTN_L) || CHECK_BTN_ALL(input->cur.button, BTN_R) ||
CHECK_BTN_ALL(input->cur.button, BTN_START)) {
diff --git a/src/code/z_frame_advance.c b/src/code/z_frame_advance.c
index 64404fb2f..486717a50 100644
--- a/src/code/z_frame_advance.c
+++ b/src/code/z_frame_advance.c
@@ -2,6 +2,7 @@
#include "stdbool.h"
+#include "controller.h"
#include "padmgr.h"
#include "macros.h"