mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
Use more joypad constants
This commit is contained in:
parent
0da16c1625
commit
afc4ce2dc5
1 changed files with 7 additions and 7 deletions
|
@ -2602,13 +2602,13 @@ SelectMenuItem:
|
|||
call HandleMenuInput
|
||||
ld hl, hFlagsFFF6
|
||||
res 1, [hl]
|
||||
bit 6, a
|
||||
jp nz, SelectMenuItem_CursorUp ; up
|
||||
bit 7, a
|
||||
jp nz, SelectMenuItem_CursorDown ; down
|
||||
bit 2, a
|
||||
jp nz, SwapMovesInMenu ; select
|
||||
bit 1, a ; B, but was it reset above?
|
||||
bit BIT_D_UP, a
|
||||
jp nz, SelectMenuItem_CursorUp
|
||||
bit BIT_D_DOWN, a
|
||||
jp nz, SelectMenuItem_CursorDown
|
||||
bit BIT_SELECT, a
|
||||
jp nz, SwapMovesInMenu
|
||||
bit BIT_B_BUTTON, a
|
||||
push af
|
||||
xor a
|
||||
ld [wMenuItemToSwap], a
|
||||
|
|
Loading…
Reference in a new issue