diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/field_special_scene.c | 2 | ||||
-rw-r--r-- | src/menu_helpers.c | 20 | ||||
-rw-r--r-- | src/teachy_tv.c | 4 |
3 files changed, 13 insertions, 13 deletions
diff --git a/src/field_special_scene.c b/src/field_special_scene.c index 535f5165d..dd48340b3 100644 --- a/src/field_special_scene.c +++ b/src/field_special_scene.c @@ -23,4 +23,4 @@ void nullsub_60(void) void nullsub_61(void) { -}
\ No newline at end of file +} 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) diff --git a/src/teachy_tv.c b/src/teachy_tv.c index 60e43c29c..eb5a7293d 100644 --- a/src/teachy_tv.c +++ b/src/teachy_tv.c @@ -817,7 +817,7 @@ static void TTVcmd_NpcMoveAndSetupTextPrinter(u8 taskId) static void TTVcmd_IdleIfTextPrinterIsActive(u8 taskId) { s16 *data = gTasks[taskId].data; - if (!RunTextPrintersRetIsActive(0)) + if (!RunTextPrinters_CheckActive(0)) ++data[3]; } @@ -945,7 +945,7 @@ static const u8 sGrassAnimArray[] = static void TTVcmd_IdleIfTextPrinterIsActive2(u8 taskId) { s16 *data = gTasks[taskId].data; - if (!RunTextPrintersRetIsActive(0)) + if (!RunTextPrinters_CheckActive(0)) ++data[3]; } |