Added support for long button press in the main menu (like Tab) and in the activation menu (activation).

This commit is contained in:
Pecusx
2023-11-08 09:48:44 +01:00
parent 44610ec89e
commit dfef25c7b2
4 changed files with 27 additions and 8 deletions
+3 -6
View File
@@ -1520,12 +1520,9 @@ pressedSpace
;we shoot here!!!
lda #0
sta ATRACT ; reset atract mode
sta pressTimer ; reset
jsr WaitForKeyRelease.StillWait
lda pressTimer
cmp #25 ; 1/2s
bcc fire
jmp callInventory
jsr WaitForLongPress
bcc fire ; short press
jmp callInventory ; long press
fire
RTS
.endp