diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-09 19:42:26 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-09 19:42:26 -0500 |
commit | 3a562f9896959ff9dd257cac18ed9090bf2be990 (patch) | |
tree | baf2adcd819b37875c9475563fffd432d0c05151 /mobile | |
parent | 1a6b05111934a94a13145705c6f4be2a68412bf3 (diff) |
Identify some wMenuJoypad-related button constants
Diffstat (limited to 'mobile')
-rw-r--r-- | mobile/mobile_22.asm | 10 | ||||
-rw-r--r-- | mobile/mobile_22_2.asm | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/mobile/mobile_22.asm b/mobile/mobile_22.asm index d8e922a88..930220ac9 100644 --- a/mobile/mobile_22.asm +++ b/mobile/mobile_22.asm @@ -2136,9 +2136,9 @@ Function89dab: ld hl, wMenuJoypadFilter and [hl] ret z - bit 0, a + bit A_BUTTON_F, a jr nz, .asm_89dc7 - bit 1, a + bit B_BUTTON_F, a jr nz, .asm_89dd9 xor a ret @@ -2943,9 +2943,9 @@ Function8a383: ld hl, wMenuJoypadFilter and [hl] ret z - bit 0, a + bit A_BUTTON_F, a jr nz, .asm_8a399 - bit 1, a + bit B_BUTTON_F, a jr nz, .asm_8a39e xor a ret @@ -3664,7 +3664,7 @@ Function8a930: .asm_8a943 call Function8b7bd ld a, [wMenuJoypad] - and $1 + and A_BUTTON jr nz, .asm_8a953 ld a, c and a diff --git a/mobile/mobile_22_2.asm b/mobile/mobile_22_2.asm index a729469f0..2eb183cb5 100644 --- a/mobile/mobile_22_2.asm +++ b/mobile/mobile_22_2.asm @@ -800,15 +800,15 @@ Function8b7bd: call ScrollingMenu call Mobile_DisableSpriteUpdates ld a, [wMenuJoypad] - cp $2 + cp B_BUTTON jr z, .asm_8b823 - cp $20 + cp D_LEFT jr nz, .asm_8b813 call Function8b832 jr .asm_8b7ea .asm_8b813 - cp $10 + cp D_RIGHT jr nz, .asm_8b81c call Function8b83e jr .asm_8b7ea |