summaryrefslogtreecommitdiff
path: root/src/menu_helpers.c
diff options
context:
space:
mode:
authorjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-06-24 02:57:25 +0800
committerjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-06-24 02:57:25 +0800
commitf85848545ae2c37abbc5a0ad06136beedbcffa2e (patch)
treee45a1d33fe7747949c4569f0485dea78d8a4b1c8 /src/menu_helpers.c
parentd39ced94fa8acac51e77cbd212a3f8d0a2cc33bb (diff)
JOY_XX
Diffstat (limited to 'src/menu_helpers.c')
-rw-r--r--src/menu_helpers.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/menu_helpers.c b/src/menu_helpers.c
index e0f143072..12837c099 100644
--- a/src/menu_helpers.c
+++ b/src/menu_helpers.c
@@ -36,7 +36,7 @@ void DisplayMessageAndContinueTask(u8 taskId, u8 windowId, u16 arg2, u8 arg3, u8
gTasks[taskId].func = Task_ContinueTaskAfterMessagePrints;
}
-bool16 RunTextPrintersRetIsActive(u8 textPrinterId)
+bool16 RunTextPrinters_CheckActive(u8 textPrinterId)
{
RunTextPrinters();
return IsTextPrinterActive(textPrinterId);
@@ -44,7 +44,7 @@ bool16 RunTextPrintersRetIsActive(u8 textPrinterId)
static void Task_ContinueTaskAfterMessagePrints(u8 taskId)
{
- if (!RunTextPrintersRetIsActive(gUnknown_20399D0))
+ if (!RunTextPrinters_CheckActive(gUnknown_20399D0))
gUnknown_20399CC(taskId);
}
@@ -75,9 +75,9 @@ u8 GetLRKeysState(void)
{
if (gSaveBlock2Ptr->optionsButtonMode == OPTIONS_BUTTON_MODE_LR)
{
- if (gMain.newKeys & L_BUTTON)
+ if (JOY_NEW(L_BUTTON))
return 1;
- if (gMain.newKeys & R_BUTTON)
+ if (JOY_NEW(R_BUTTON))
return 2;
}
return 0;
@@ -87,9 +87,9 @@ u8 sub_80BF66C(void)
{
if (gSaveBlock2Ptr->optionsButtonMode == OPTIONS_BUTTON_MODE_LR)
{
- if (gMain.newAndRepeatedKeys & L_BUTTON)
+ if (JOY_REPT(L_BUTTON))
return 1;
- if (gMain.newAndRepeatedKeys & R_BUTTON)
+ if (JOY_REPT(R_BUTTON))
return 2;
}
return 0;
@@ -178,7 +178,7 @@ bool8 AdjustQuantityAccordingToDPadInput(s16 *arg0, u16 arg1)
{
s16 valBefore = (*arg0);
- if ((gMain.newAndRepeatedKeys & DPAD_ANY) == DPAD_UP)
+ if (JOY_REPT(DPAD_ANY) == DPAD_UP)
{
(*arg0)++;
if ((*arg0) > arg1)
@@ -194,7 +194,7 @@ bool8 AdjustQuantityAccordingToDPadInput(s16 *arg0, u16 arg1)
return TRUE;
}
}
- else if ((gMain.newAndRepeatedKeys & DPAD_ANY) == DPAD_DOWN)
+ else if (JOY_REPT(DPAD_ANY) == DPAD_DOWN)
{
(*arg0)--;
if ((*arg0) <= 0)
@@ -209,7 +209,7 @@ bool8 AdjustQuantityAccordingToDPadInput(s16 *arg0, u16 arg1)
return TRUE;
}
}
- else if ((gMain.newAndRepeatedKeys & DPAD_ANY) == DPAD_RIGHT)
+ else if (JOY_REPT(DPAD_ANY) == DPAD_RIGHT)
{
(*arg0) += 10;
if ((*arg0) > arg1)
@@ -224,7 +224,7 @@ bool8 AdjustQuantityAccordingToDPadInput(s16 *arg0, u16 arg1)
return TRUE;
}
}
- else if ((gMain.newAndRepeatedKeys & DPAD_ANY) == DPAD_LEFT)
+ else if (JOY_REPT(DPAD_ANY) == DPAD_LEFT)
{
(*arg0) -= 10;
if ((*arg0) <= 0)