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
+11
View File
@@ -108,6 +108,17 @@ Check2button
rts
.endp
;--------------------------------------------------
.proc WaitForLongPress
;--------------------------------------------------
lda #0
sta pressTimer ; reset
jsr WaitForKeyRelease.StillWait
lda pressTimer
cmp #25 ; 1/2s
rts ; if CARRY is set then long press
.endp
;--------------------------------------------------
.proc WaitForKeyRelease
;--------------------------------------------------