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

@@ -206,7 +206,7 @@ TMHM_PocketLoop:
ld [w2DMenuFlags2], a
ld a, $20
ld [w2DMenuCursorOffsets], a
ld a, PAD_A | PAD_B | PAD_UP | PAD_DOWN | PAD_LEFT | PAD_RIGHT
ld a, PAD_A | PAD_B | PAD_CTRL_PAD
ld [wMenuJoypadFilter], a
ld a, [wTMHMPocketCursor]
inc a

View File

@@ -463,7 +463,7 @@ PokegearClock_Joypad:
call .UpdateClock
ld hl, hJoyLast
ld a, [hl]
and PAD_A | PAD_B | PAD_START | PAD_SELECT
and PAD_BUTTONS
jr nz, .quit
ld a, [hl]
and PAD_RIGHT

View File

@@ -1084,7 +1084,7 @@ MoveScreen2DMenuData:
db _2DMENU_ENABLE_SPRITE_ANIMS ; flags 1
db 0 ; flags 2
dn 2, 0 ; cursor offsets
db PAD_UP | PAD_DOWN | PAD_LEFT | PAD_RIGHT | PAD_A | PAD_B ; accepted buttons
db PAD_CTRL_PAD | PAD_A | PAD_B ; accepted buttons
String_MoveWhere:
db "Where?@"

View File

@@ -253,7 +253,7 @@ MonStatsJoypad:
ret
.next
and PAD_DOWN | PAD_UP | PAD_LEFT | PAD_RIGHT | PAD_A | PAD_B
and PAD_CTRL_PAD | PAD_A | PAD_B
jp StatsScreen_JoypadAction
StatsScreenWaitCry: