mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 22:44:30 +00:00
Move button macros to include/controller.h (#2138)
* Move button macros to include/controller.h * Fix z_mag button ordering
This commit is contained in:
parent
bb6177e936
commit
3faa1c6acc
11 changed files with 43 additions and 38 deletions
|
@ -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) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "stdbool.h"
|
||||
|
||||
#include "controller.h"
|
||||
#include "padmgr.h"
|
||||
#include "macros.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue