Allways use GetKey
This commit is contained in:
+7
-2
@@ -432,10 +432,15 @@ getKeyAfterWait
|
|||||||
lda kbcode
|
lda kbcode
|
||||||
cmp #@kbcode._none
|
cmp #@kbcode._none
|
||||||
beq checkJoyGetKey
|
beq checkJoyGetKey
|
||||||
|
pha
|
||||||
and #$3f ; CTRL and SHIFT ellimination
|
and #$3f ; CTRL and SHIFT ellimination
|
||||||
cmp #@kbcode._esc ; 28 ; ESC
|
cmp #@kbcode._esc ; 28 ; ESC
|
||||||
bne getkeyend
|
beq EscPressed
|
||||||
mvy #$80 escFlag
|
pla
|
||||||
|
jmp getkeyend
|
||||||
|
EscPressed
|
||||||
|
pla
|
||||||
|
mvy #$80 escFlag
|
||||||
bne getkeyend
|
bne getkeyend
|
||||||
|
|
||||||
checkJoyGetKey
|
checkJoyGetKey
|
||||||
|
|||||||
BIN
Binary file not shown.
Binary file not shown.
+2
-57
@@ -1232,13 +1232,7 @@ notpressed
|
|||||||
tya
|
tya
|
||||||
and #%00000010
|
and #%00000010
|
||||||
jeq pressedTAB ; Select key
|
jeq pressedTAB ; Select key
|
||||||
lda SKSTAT
|
jsr GetKey.getKeyAfterWait
|
||||||
cmp #$ff
|
|
||||||
jeq checkJoy
|
|
||||||
cmp #$f7 ; SHIFT
|
|
||||||
jeq checkJoy
|
|
||||||
|
|
||||||
lda kbcode
|
|
||||||
and #%10111111 ; SHIFT elimination
|
and #%10111111 ; SHIFT elimination
|
||||||
|
|
||||||
cmp #@kbcode._A ; $3f ; A
|
cmp #@kbcode._A ; $3f ; A
|
||||||
@@ -1328,29 +1322,6 @@ NoVdebugSwitch
|
|||||||
.ENDIF
|
.ENDIF
|
||||||
EndKeys
|
EndKeys
|
||||||
jmp notpressed
|
jmp notpressed
|
||||||
checkJoy
|
|
||||||
;------------JOY-------------
|
|
||||||
;happy happy joy joy
|
|
||||||
;check for joystick now
|
|
||||||
lda STICK0
|
|
||||||
and #$0f
|
|
||||||
cmp #$0f
|
|
||||||
beq notpressedJoy
|
|
||||||
tay
|
|
||||||
mva #0 ATRACT ; reset atract mode
|
|
||||||
lda joyToKeyTable,y
|
|
||||||
jmp jumpFromStick
|
|
||||||
notpressedJoy
|
|
||||||
.IF TARGET = 800
|
|
||||||
;second fire only Atari 800
|
|
||||||
jsr GetKey.Check2button
|
|
||||||
jcc pressedTAB
|
|
||||||
.ENDIF
|
|
||||||
;fire
|
|
||||||
lda STRIG0
|
|
||||||
jeq pressedSpace
|
|
||||||
mva #$ff pressTimer ; stop counting frames
|
|
||||||
jmp notpressed
|
|
||||||
|
|
||||||
;
|
;
|
||||||
pressedUp
|
pressedUp
|
||||||
@@ -2754,16 +2725,7 @@ notpressed
|
|||||||
jsr DrawTankEngine
|
jsr DrawTankEngine
|
||||||
; enimation ends
|
; enimation ends
|
||||||
|
|
||||||
lda SKSTAT
|
jsr GetKey.getKeyAfterWait
|
||||||
cmp #$ff
|
|
||||||
jeq checkJoy
|
|
||||||
cmp #$f7 ; SHIFT
|
|
||||||
jeq checkJoy
|
|
||||||
|
|
||||||
lda kbcode
|
|
||||||
and #%00111111 ; CTRL and SHIFT elimination
|
|
||||||
|
|
||||||
jumpFromStick
|
|
||||||
cmp #@kbcode._left ; $6
|
cmp #@kbcode._left ; $6
|
||||||
jeq pressedLeft
|
jeq pressedLeft
|
||||||
cmp #@kbcode._right ; $7
|
cmp #@kbcode._right ; $7
|
||||||
@@ -2771,23 +2733,6 @@ jumpFromStick
|
|||||||
cmp #@kbcode._space ; $21
|
cmp #@kbcode._space ; $21
|
||||||
jeq pressedSpace
|
jeq pressedSpace
|
||||||
jmp notpressed
|
jmp notpressed
|
||||||
checkJoy
|
|
||||||
;------------JOY-------------
|
|
||||||
;happy happy joy joy
|
|
||||||
;check for joystick now
|
|
||||||
lda STICK0
|
|
||||||
and #$0f
|
|
||||||
cmp #$0f
|
|
||||||
beq notpressedJoy
|
|
||||||
tay
|
|
||||||
lda joyToKeyTable,y
|
|
||||||
jmp jumpFromStick
|
|
||||||
notpressedJoy
|
|
||||||
;fire
|
|
||||||
lda STRIG0
|
|
||||||
jeq pressedSpace
|
|
||||||
jmp notpressed
|
|
||||||
|
|
||||||
|
|
||||||
pressedRight
|
pressedRight
|
||||||
lda ShieldEnergy,x
|
lda ShieldEnergy,x
|
||||||
|
|||||||
Reference in New Issue
Block a user