mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Keyboard and Joys - GetKey works
This commit is contained in:
@@ -401,7 +401,6 @@ ManualShooting
|
|||||||
jsr WaitForKeyRelease
|
jsr WaitForKeyRelease
|
||||||
lda #%00000000
|
lda #%00000000
|
||||||
sta TestFlightFlag ; set "Test Fight" off
|
sta TestFlightFlag ; set "Test Fight" off
|
||||||
mva #$ff FastKeyRead
|
|
||||||
jsr BeforeFire
|
jsr BeforeFire
|
||||||
mva #$00 FastKeyRead
|
mva #$00 FastKeyRead
|
||||||
bit escFlag
|
bit escFlag
|
||||||
|
|||||||
BIN
Binary file not shown.
+6
-1
@@ -1220,9 +1220,12 @@ ContinueToCheckMaxForce2
|
|||||||
; $f3 - shift+key
|
; $f3 - shift+key
|
||||||
|
|
||||||
notpressed
|
notpressed
|
||||||
|
mva #$00 FastKeyRead
|
||||||
|
|
||||||
jsr CheckExitKeys ; Check for O, Esc or Start+Option keys
|
jsr CheckExitKeys ; Check for O, Esc or Start+Option keys
|
||||||
spl:rts ; exit if pressed 'Exit keys'
|
spl:rts ; exit if pressed 'Exit keys'
|
||||||
|
|
||||||
|
mva #$ff FastKeyRead
|
||||||
ldx TankNr ; for optimize
|
ldx TankNr ; for optimize
|
||||||
; Select and Option
|
; Select and Option
|
||||||
lda CONSOL
|
lda CONSOL
|
||||||
@@ -1240,6 +1243,7 @@ notpressed
|
|||||||
callActivation
|
callActivation
|
||||||
; Hide all tanks - after inventory they may have other shapes
|
; Hide all tanks - after inventory they may have other shapes
|
||||||
jsr ClearTanks
|
jsr ClearTanks
|
||||||
|
mva #$00 FastKeyRead
|
||||||
jsr DefensivesActivate
|
jsr DefensivesActivate
|
||||||
jmp afterInventory
|
jmp afterInventory
|
||||||
|
|
||||||
@@ -1251,6 +1255,7 @@ callInventory
|
|||||||
jsr ClearTanks
|
jsr ClearTanks
|
||||||
;
|
;
|
||||||
mva #$ff isInventory
|
mva #$ff isInventory
|
||||||
|
mva #$00 FastKeyRead
|
||||||
jsr Purchase
|
jsr Purchase
|
||||||
afterInventory
|
afterInventory
|
||||||
jsr MakeDarkScreen
|
jsr MakeDarkScreen
|
||||||
@@ -1270,7 +1275,7 @@ NoSpyHard
|
|||||||
mva #0 escFlag
|
mva #0 escFlag
|
||||||
jmp ReleaseAndLoop
|
jmp ReleaseAndLoop
|
||||||
@
|
@
|
||||||
/* cmp #$80|@kbcode._up
|
/*o cmp #$80|@kbcode._up
|
||||||
jeq CTRLPressedUp
|
jeq CTRLPressedUp
|
||||||
cmp #$80|@kbcode._down
|
cmp #$80|@kbcode._down
|
||||||
jeq CTRLPressedDown
|
jeq CTRLPressedDown
|
||||||
|
|||||||
Reference in New Issue
Block a user