Rename joypad registers.

This commit is contained in:
yenatch 2014-05-25 10:51:53 -07:00
parent 1ee8de792b
commit 031e33957d
73 changed files with 306 additions and 301 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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