1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-01-23 09:16:05 +00:00

Now fix repeating sequences

This commit is contained in:
David Schmenk
2025-03-15 19:17:56 -07:00
parent 7df77e19f1
commit 4c4e9a4e4f
2 changed files with 11 additions and 6 deletions

Binary file not shown.

View File

@@ -776,7 +776,6 @@ end
// No sequence, just waste time and yield
//
def noSequence(yield, func)#0
return
//
// Start wasting time
//
@@ -831,11 +830,17 @@ end
// Play until keystroke
//
export def musicGetKey(yield, backgroundProc)#1
musicSequence(yield, backgroundProc)#0 // Call background proc every half second
if keypressed()
return getc
fin
return 0
char key
key = 0
repeat
musicSequence(yield, backgroundProc)#0 // Call background proc every half second
if keypressed()
key = getc
seqRepeat = FALSE
fin
until not seqRepeat
return key
end
when MACHID & MACHID_MODEL