summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-04 21:11:55 -0400
committerPokeCodec <67983839+PokeCodec@users.noreply.github.com>2020-09-04 21:11:55 -0400
commit28ef2fb774bf596a3e7f81055453304e0d2ce066 (patch)
tree4a67ad17888cac15c7cb33fa8aced60a2e3bf6dc /src/main.c
parentda582d5258703eb52d8cadb4cbaef4ee7031b833 (diff)
Switch to button macros
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 238bd8243..b3b76b1fb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -280,10 +280,10 @@ static void ReadKeys(void)
// Remap L to A if the L=A option is enabled.
if (gSaveBlock2Ptr->optionsButtonMode == OPTIONS_BUTTON_MODE_L_EQUALS_A)
{
- if (gMain.newKeys & L_BUTTON)
+ if (JOY_NEW(L_BUTTON))
gMain.newKeys |= A_BUTTON;
- if (gMain.heldKeys & L_BUTTON)
+ if (JOY_HELD(L_BUTTON))
gMain.heldKeys |= A_BUTTON;
}