mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Rename joypad registers.
This commit is contained in:
parent
1ee8de792b
commit
031e33957d
73 changed files with 306 additions and 301 deletions
|
|
@ -54,7 +54,7 @@ Func_765e5: ; 765e5 (1d:65e5)
|
|||
push bc
|
||||
call Func_76610
|
||||
call WaitForTextScrollButtonPress
|
||||
ld a, [H_CURRENTPRESSEDBUTTONS]
|
||||
ld a, [hJoyHeld]
|
||||
bit 1, a
|
||||
jr nz, .fifth
|
||||
ld hl, $CC6B
|
||||
|
|
|
|||
|
|
@ -97,11 +97,11 @@ MainMenu: ; 5af2 (1:5af2)
|
|||
set 5,[hl]
|
||||
.next6
|
||||
xor a
|
||||
ld [H_NEWLYPRESSEDBUTTONS],a
|
||||
ld [H_NEWLYRELEASEDBUTTONS],a
|
||||
ld [H_CURRENTPRESSEDBUTTONS],a
|
||||
ld [hJoyPressed],a
|
||||
ld [hJoyReleased],a
|
||||
ld [hJoyHeld],a
|
||||
call GetJoypadState
|
||||
ld a,[H_CURRENTPRESSEDBUTTONS]
|
||||
ld a,[hJoyHeld]
|
||||
bit 0,a
|
||||
jr nz,.next5
|
||||
bit 1,a
|
||||
|
|
@ -315,8 +315,8 @@ Func_5d52: ; 5d52 (1:5d52)
|
|||
|
||||
Func_5d5f: ; 5d5f (1:5d5f)
|
||||
xor a
|
||||
ld [H_NEWLYPRESSEDBUTTONS], a
|
||||
ld [H_CURRENTPRESSEDBUTTONS], a
|
||||
ld [hJoyPressed], a
|
||||
ld [hJoyHeld], a
|
||||
ld [$ffb5], a
|
||||
ld [$d72d], a
|
||||
ld hl, $d732
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ DisplayNamingScreen: ; 6596 (1:6596)
|
|||
pop af
|
||||
ld [wCurrentMenuItem], a ; $cc26
|
||||
call GetJoypadStateLowSensitivity
|
||||
ld a, [H_NEWLYPRESSEDBUTTONS]
|
||||
ld a, [hJoyPressed]
|
||||
and a
|
||||
jr z, .asm_65ff
|
||||
ld hl, .unknownPointerTable_665e ; $665e
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ RedisplayStartMenu:: ; 2adf (0:2adf)
|
|||
; EXIT falls through to here
|
||||
CloseStartMenu:: ; 2b70 (0:2b70)
|
||||
call GetJoypadState
|
||||
ld a,[H_NEWLYPRESSEDBUTTONS]
|
||||
ld a,[hJoyPressed]
|
||||
bit 0,a ; was A button newly pressed?
|
||||
jr nz,CloseStartMenu
|
||||
call LoadTextBoxTilePatterns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue