aboutsummaryrefslogtreecommitdiffstats
path: root/home/list_menu.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2025-07-02 21:15:13 -0500
committerdannye <33dannye@gmail.com>2025-07-02 21:15:13 -0500
commitca019eac8fd96559f4d4e712f0b53e95492e5dcb (patch)
tree209a500e3bda6c2109e5acec60448e9e52f8c2af /home/list_menu.asm
parentUse more ldpikacry (diff)
parentRequire RGBDS 0.9.3 for its DMG palette specs (#513) (diff)
downloadpokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.tar.gz
pokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.tar.xz
pokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'home/list_menu.asm')
-rw-r--r--home/list_menu.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/home/list_menu.asm b/home/list_menu.asm
index 0742521f..b09f1ebc 100644
--- a/home/list_menu.asm
+++ b/home/list_menu.asm
@@ -50,7 +50,7 @@ DisplayListMenuID::
ld [wTopMenuItemY], a
ld a, 5
ld [wTopMenuItemX], a
- ld a, A_BUTTON | B_BUTTON | SELECT
+ ld a, PAD_A | PAD_B | PAD_SELECT
ld [wMenuWatchedKeys], a
ld c, 10
call DelayFrames
@@ -84,7 +84,7 @@ DisplayListMenuIDLoop::
push af
call PlaceMenuCursor
pop af
- bit BIT_A_BUTTON, a
+ bit B_PAD_A, a
jp z, .checkOtherKeys
.buttonAPressed
ld a, [wCurrentMenuItem]
@@ -170,12 +170,12 @@ DisplayListMenuIDLoop::
res BIT_NO_TEXT_DELAY, [hl]
jp BankswitchBack
.checkOtherKeys ; check B, SELECT, Up, and Down keys
- bit BIT_B_BUTTON, a
+ bit B_PAD_B, a
jp nz, ExitListMenu ; if so, exit the menu
- bit BIT_SELECT, a
+ bit B_PAD_SELECT, a
jp nz, HandleItemListSwapping ; if so, allow the player to swap menu entries
ld b, a
- bit BIT_D_DOWN, b
+ bit B_PAD_DOWN, b
ld hl, wListScrollOffset
jr z, .upPressed
.downPressed
@@ -220,13 +220,13 @@ DisplayChooseQuantityMenu::
.waitForKeyPressLoop
call JoypadLowSensitivity
ldh a, [hJoyPressed] ; newly pressed buttons
- bit BIT_A_BUTTON, a
+ bit B_PAD_A, a
jp nz, .buttonAPressed
- bit BIT_B_BUTTON, a
+ bit B_PAD_B, a
jp nz, .buttonBPressed
- bit BIT_D_UP, a
+ bit B_PAD_UP, a
jr nz, .incrementQuantity
- bit BIT_D_DOWN, a
+ bit B_PAD_DOWN, a
jr nz, .decrementQuantity
jr .waitForKeyPressLoop
.incrementQuantity