Use combined joypad masks

This commit is contained in:
Rangi42
2025-06-29 16:18:42 -04:00
committed by Rangi
parent 5abf8d01fb
commit de396249e1
6 changed files with 8 additions and 8 deletions

View File

@@ -97,8 +97,8 @@ endr
; Now that we have the input, we can do stuff with it.
; For example, soft reset:
and PAD_A | PAD_B | PAD_SELECT | PAD_START
cp PAD_A | PAD_B | PAD_SELECT | PAD_START
and PAD_BUTTONS
cp PAD_BUTTONS
jp z, Reset
ret

View File

@@ -52,10 +52,10 @@ JoyTextDelay_ForcehJoyDown::
ldh [hInMenu], a
ldh a, [hJoyLast]
and PAD_RIGHT + PAD_LEFT + PAD_UP + PAD_DOWN
and PAD_CTRL_PAD
ld c, a
ldh a, [hJoyPressed]
and PAD_A + PAD_B + PAD_SELECT + PAD_START
and PAD_BUTTONS
or c
ld c, a
ret