rename BUTTON_A and BUTTON_B constants to A_BUTTON and B_BUTTON

This commit is contained in:
yenatch
2013-09-07 23:49:20 -04:00
parent 9f53825ce2
commit 847843d866
4 changed files with 20 additions and 20 deletions

View File

@@ -101,8 +101,8 @@ Joypad: ; 935
; Now that we have the input, we can do stuff with it. ; Now that we have the input, we can do stuff with it.
; For example, soft reset: ; For example, soft reset:
and BUTTON_A | BUTTON_B | SELECT | START and A_BUTTON | B_BUTTON | SELECT | START
cp BUTTON_A | BUTTON_B | SELECT | START cp A_BUTTON | B_BUTTON | SELECT | START
jp z, Reset jp z, Reset
ret ret
@@ -283,11 +283,11 @@ Functiona1b: ; a1b
pop bc pop bc
ld a, [hJoyDown] ld a, [hJoyDown]
cp D_UP | SELECT | BUTTON_B cp D_UP | SELECT | B_BUTTON
jr z, .asm_a34 jr z, .asm_a34
ld a, [$ffa9] ld a, [$ffa9]
and START | BUTTON_A and START | A_BUTTON
jr nz, .asm_a34 jr nz, .asm_a34
dec c dec c
@@ -306,7 +306,7 @@ Functiona36: ; a36
call DelayFrame call DelayFrame
call GetJoypadPublic call GetJoypadPublic
ld a, [hJoyPressed] ld a, [hJoyPressed]
and BUTTON_A | BUTTON_B and A_BUTTON | B_BUTTON
ret nz ret nz
call RTC call RTC
jr Functiona36 jr Functiona36
@@ -382,7 +382,7 @@ Functiona80: ; a80
Functionaa5: ; aa5 Functionaa5: ; aa5
call Functiona57 call Functiona57
ld a, [$ffa9] ld a, [$ffa9]
and BUTTON_A | BUTTON_B and A_BUTTON | B_BUTTON
jr z, Functionaa5 jr z, Functionaa5
ret ret
; aaf ; aaf

View File

@@ -1054,7 +1054,7 @@ Text_0A: ; 14ed
push bc push bc
call GetJoypadPublic call GetJoypadPublic
ld a, [hJoyDown] ld a, [hJoyDown]
and BUTTON_A | BUTTON_B and A_BUTTON | B_BUTTON
jr nz, .asm_14fd jr nz, .asm_14fd
ld c, 30 ld c, 30
call DelayFrames call DelayFrames
@@ -1136,7 +1136,7 @@ Text_0C: ; 1543
ld [hli], a ld [hli], a
call GetJoypadPublic call GetJoypadPublic
ld a, [hJoyDown] ld a, [hJoyDown]
and BUTTON_A | BUTTON_B and A_BUTTON | B_BUTTON
jr nz, .asm_155a jr nz, .asm_155a
ld c, 10 ld c, 10
call DelayFrames call DelayFrames

View File

@@ -170,8 +170,8 @@ BUTTONS EQU %00010000
D_PAD EQU %00100000 D_PAD EQU %00100000
NO_INPUT EQU %00000000 NO_INPUT EQU %00000000
BUTTON_A EQU %00000001 A_BUTTON EQU %00000001
BUTTON_B EQU %00000010 B_BUTTON EQU %00000010
SELECT EQU %00000100 SELECT EQU %00000100
START EQU %00001000 START EQU %00001000
D_RIGHT EQU %00010000 D_RIGHT EQU %00010000

View File

@@ -23902,9 +23902,9 @@ StartMenu: ; 125cd
call .PrintMenuAccount call .PrintMenuAccount
call Function1f1a call Function1f1a
ld a, [$cf73] ld a, [$cf73]
cp BUTTON_B cp B_BUTTON
jr z, .b jr z, .b
cp BUTTON_A cp A_BUTTON
jr z, .a jr z, .a
jr .loop jr .loop
.a .a
@@ -31482,11 +31482,11 @@ Function16be4: ; 16be4
call Functiona57 call Functiona57
ld a, [hJoyPressed] ld a, [hJoyPressed]
and BUTTON_B and B_BUTTON
jr nz, .asm_16c95 jr nz, .asm_16c95
ld a, [hJoyPressed] ld a, [hJoyPressed]
and BUTTON_A and A_BUTTON
jr nz, .asm_16c82 jr nz, .asm_16c82
call Function16ca0 call Function16ca0
@@ -61158,7 +61158,7 @@ CheckForcedMovementInput: ; 802cb
ld hl, .data_802e8 ld hl, .data_802e8
add hl, de add hl, de
ld a, [CurInput] ld a, [CurInput]
and BUTTON_A | BUTTON_B | SELECT | START and A_BUTTON | B_BUTTON | SELECT | START
or [hl] or [hl]
ld [CurInput], a ld [CurInput], a
ret ret
@@ -70599,7 +70599,7 @@ OWPlayerInput: ; 96974
CheckAPressOW: ; 96999 CheckAPressOW: ; 96999
ld a, [hJoyPressed] ld a, [hJoyPressed]
and BUTTON_A and A_BUTTON
ret z ret z
call TryObjectEvent call TryObjectEvent
ret c ret c
@@ -75887,7 +75887,7 @@ Functione4512: ; e4512
Options_Cancel: ; e4520 Options_Cancel: ; e4520
ld a, [hJoyPressed] ld a, [hJoyPressed]
and BUTTON_A and A_BUTTON
jr nz, .asm_e4528 jr nz, .asm_e4528
and a and a
ret ret
@@ -90228,7 +90228,7 @@ Function1de299: ; 1de299
DudeAutoInput_A: ; 1de29f DudeAutoInput_A: ; 1de29f
db NO_INPUT, $50 db NO_INPUT, $50
db BUTTON_A, $00 db A_BUTTON, $00
db NO_INPUT, $ff ; end db NO_INPUT, $ff ; end
; 1de2a5 ; 1de2a5
@@ -90236,7 +90236,7 @@ DudeAutoInput_RightA: ; 1de2a5
db NO_INPUT, $08 db NO_INPUT, $08
db D_RIGHT, $00 db D_RIGHT, $00
db NO_INPUT, $08 db NO_INPUT, $08
db BUTTON_A, $00 db A_BUTTON, $00
db NO_INPUT, $ff ; end db NO_INPUT, $ff ; end
; 1de2af ; 1de2af
@@ -90250,7 +90250,7 @@ DudeAutoInput_DownA: ; 1de2af
db NO_INPUT, $fe db NO_INPUT, $fe
db NO_INPUT, $fe db NO_INPUT, $fe
db NO_INPUT, $fe db NO_INPUT, $fe
db BUTTON_A, $00 db A_BUTTON, $00
db NO_INPUT, $ff ; end db NO_INPUT, $ff ; end
; 1de2c5 ; 1de2c5