mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
Rename GetJoypadState -> Joypad.
This commit is contained in:
parent
031e33957d
commit
bba8405992
10 changed files with 28 additions and 28 deletions
|
|
@ -540,7 +540,7 @@ TradeCenter_SelectMon:
|
|||
ld a, $ed
|
||||
ld [$c4e1], a
|
||||
.asm_574a
|
||||
call GetJoypadStateLowSensitivity
|
||||
call JoypadLowSensitivity
|
||||
ld a, [$ffb5]
|
||||
and a
|
||||
jr z, .asm_574a ; 0x5750 $f8
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ Func_7bed6: ; 7bed6 (1e:7ed6)
|
|||
asm_7befa: ; 7befa (1e:7efa)
|
||||
call DelayFrame
|
||||
push bc
|
||||
call GetJoypadStateLowSensitivity
|
||||
call JoypadLowSensitivity
|
||||
ld a, [$ffb5]
|
||||
pop bc
|
||||
and $2
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ MainMenu: ; 5af2 (1:5af2)
|
|||
ld [hJoyPressed],a
|
||||
ld [hJoyReleased],a
|
||||
ld [hJoyHeld],a
|
||||
call GetJoypadState
|
||||
call Joypad
|
||||
ld a,[hJoyHeld]
|
||||
bit 0,a
|
||||
jr nz,.next5
|
||||
|
|
@ -483,7 +483,7 @@ DisplayOptionMenu: ; 5e8a (1:5e8a)
|
|||
call PlaceMenuCursor
|
||||
call SetOptionsFromCursorPositions
|
||||
.getJoypadStateLoop
|
||||
call GetJoypadStateLowSensitivity
|
||||
call JoypadLowSensitivity
|
||||
ld a,[$ffb5]
|
||||
ld b,a
|
||||
and a,%11111011 ; any key besides select pressed?
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ DisplayNamingScreen: ; 6596 (1:6596)
|
|||
callba AnimatePartyMon_ForceSpeed1
|
||||
pop af
|
||||
ld [wCurrentMenuItem], a ; $cc26
|
||||
call GetJoypadStateLowSensitivity
|
||||
call JoypadLowSensitivity
|
||||
ld a, [hJoyPressed]
|
||||
and a
|
||||
jr z, .asm_65ff
|
||||
|
|
|
|||
|
|
@ -584,7 +584,7 @@ ShowPokedexDataInternal: ; 402e2 (10:42e2)
|
|||
xor a
|
||||
ld [$fff4],a
|
||||
.waitForButtonPress
|
||||
call GetJoypadStateLowSensitivity
|
||||
call JoypadLowSensitivity
|
||||
ld a,[$ffb5]
|
||||
and a,%00000011 ; A button and B button
|
||||
jr z,.waitForButtonPress
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ RedisplayStartMenu:: ; 2adf (0:2adf)
|
|||
|
||||
; EXIT falls through to here
|
||||
CloseStartMenu:: ; 2b70 (0:2b70)
|
||||
call GetJoypadState
|
||||
call Joypad
|
||||
ld a,[hJoyPressed]
|
||||
bit 0,a ; was A button newly pressed?
|
||||
jr nz,CloseStartMenu
|
||||
|
|
|
|||
|
|
@ -799,7 +799,7 @@ SlotMachine_3784e: ; 3784e (d:784e)
|
|||
|
||||
SlotMachine_37882: ; 37882 (d:7882)
|
||||
call DelayFrame
|
||||
call GetJoypadStateLowSensitivity
|
||||
call JoypadLowSensitivity
|
||||
ld a, [$ffb5]
|
||||
and $1
|
||||
ret z
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ Func_70e92: ; 70e92 (1c:4e92)
|
|||
call CopyData
|
||||
.asm_70ec8
|
||||
call Func_716c6
|
||||
call GetJoypadStateLowSensitivity
|
||||
call JoypadLowSensitivity
|
||||
ld a, [$ffb5]
|
||||
ld b, a
|
||||
and $c3
|
||||
|
|
@ -195,7 +195,7 @@ LoadTownMap_Fly: ; 70f90 (1c:4f90)
|
|||
.asm_71004
|
||||
push hl
|
||||
call DelayFrame
|
||||
call GetJoypadStateLowSensitivity
|
||||
call JoypadLowSensitivity
|
||||
ld a, [$ffb5]
|
||||
ld b, a
|
||||
pop hl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue