mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-06 13:38:30 +09:00
edit.js to wait for key up on initial launch
This commit is contained in:
@@ -426,6 +426,13 @@ else {
|
|||||||
displayBulletin(`Read ${textbuffer.length} Lines`);
|
displayBulletin(`Read ${textbuffer.length} Lines`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if a key was held down when the app launched, wait for key to go up
|
||||||
|
while (1) {
|
||||||
|
sys.poke(-40, 255);
|
||||||
|
if (sys.peek(-41) == 0) break;
|
||||||
|
sys.spin();
|
||||||
|
}
|
||||||
|
|
||||||
while (!exit) {
|
while (!exit) {
|
||||||
input.withEvent(event => {
|
input.withEvent(event => {
|
||||||
let eventName = event[0]
|
let eventName = event[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user