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:
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user