mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Added support for long button press in the main menu (like Tab) and in the activation menu (activation).
This commit is contained in:
@@ -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
|
||||
;--------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user