Use combined joypad masks
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user