mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
Use hram constants for remaining joypad variables.
This commit is contained in:
parent
365ae68d80
commit
8f49e37b82
8 changed files with 71 additions and 68 deletions
|
|
@ -307,7 +307,7 @@ Func_5d5f: ; 5d5f (1:5d5f)
|
|||
xor a
|
||||
ld [hJoyPressed], a
|
||||
ld [hJoyHeld], a
|
||||
ld [$ffb5], a
|
||||
ld [hJoy5], a
|
||||
ld [wd72d], a
|
||||
ld hl, wd732
|
||||
set 0, [hl]
|
||||
|
|
@ -461,7 +461,7 @@ DisplayOptionMenu: ; 5e8a (1:5e8a)
|
|||
call SetOptionsFromCursorPositions
|
||||
.getJoypadStateLoop
|
||||
call JoypadLowSensitivity
|
||||
ld a,[$ffb5]
|
||||
ld a,[hJoy5]
|
||||
ld b,a
|
||||
and a,%11111011 ; any key besides select pressed?
|
||||
jr z,.getJoypadStateLoop
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ ShowPokedexMenu: ; 40000 (10:4000)
|
|||
ld [wLastMenuItem],a
|
||||
inc a
|
||||
ld [wd11e],a
|
||||
ld [$ffb7],a
|
||||
ld [hJoy7],a
|
||||
.setUpGraphics
|
||||
ld b,$08
|
||||
call GoPAL_SET
|
||||
|
|
@ -35,7 +35,7 @@ ShowPokedexMenu: ; 40000 (10:4000)
|
|||
ld [wcc37],a
|
||||
ld [wCurrentMenuItem],a
|
||||
ld [wLastMenuItem],a
|
||||
ld [$ffb7],a
|
||||
ld [hJoy7],a
|
||||
ld [wcd3a],a
|
||||
ld [wcd3b],a
|
||||
pop af
|
||||
|
|
@ -550,7 +550,7 @@ ShowPokedexDataInternal: ; 402e2 (10:42e2)
|
|||
ld [$fff4],a
|
||||
.waitForButtonPress
|
||||
call JoypadLowSensitivity
|
||||
ld a,[$ffb5]
|
||||
ld a,[hJoy5]
|
||||
and a,%00000011 ; A button and B button
|
||||
jr z,.waitForButtonPress
|
||||
pop af
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue