DPAD direction fix

This commit is contained in:
Sonic Dreamcaster 2024-11-16 01:19:59 -03:00
parent 95dcd6c1ca
commit 536967b403

View File

@ -3754,7 +3754,7 @@ bool Option_Input_MoveCursor_Y(s32* arg0, s32 arg1, bool arg2, s32 arg3, s32 arg
stick->unk_0 -= arg6; stick->unk_0 -= arg6;
} }
} else if (((gControllerPress[0].button & L_JPAD) || (gControllerPress[0].button & R_JPAD)) && (arg2 == false)) { } else if (((gControllerPress[0].button & L_JPAD) || (gControllerPress[0].button & R_JPAD)) && (arg2 == false)) {
if (gControllerPress[0].button & L_JPAD) { if (gControllerPress[0].button & R_JPAD) {
(*arg0)++; (*arg0)++;
if (*arg0 > arg1) { if (*arg0 > arg1) {
if (arg3 == 0) { if (arg3 == 0) {
@ -3765,7 +3765,7 @@ bool Option_Input_MoveCursor_Y(s32* arg0, s32 arg1, bool arg2, s32 arg3, s32 arg
} }
} }
if (gControllerPress[0].button & R_JPAD) { if (gControllerPress[0].button & L_JPAD) {
(*arg0)--; (*arg0)--;
if (*arg0 < 0) { if (*arg0 < 0) {
if (arg3 == 0) { if (arg3 == 0) {