The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
why doesn't GETKEY work with WAIT (solved)
10-26-2015, 07:31 AM (This post was last modified: 10-26-2015 12:32 PM by StephenG1CMZ.)
Post: #1
why doesn't GETKEY work with WAIT (solved)
I expected this simple program to buffer key input, allowing tapping ESC to exit: it doesn't when WAIT is included, so I have to exit by holding ON to interrupt the program instead.

Is there a better way?,[Android]
Code:


 LOCAL LIGHTH:="HOLD ON/OFF TO EXIT:GETKEY BROKEN";
 EXPORT LIGHTSTEADY()
 BEGIN
  RECT_P(0,0,320,240,0,#FFh);
  TEXTOUT_P(LIGHTH,0,180);
  REPEAT
  //WAIT(−1);
  UNTIL GETKEY==4 ;//UNRELIABLE

 END;

 EXPORT GETKEYPROB()
 BEGIN
  LIGHTSTEADY();
 END;

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
why doesn't GETKEY work with WAIT (solved) - StephenG1CMZ - 10-26-2015 07:31 AM



User(s) browsing this thread: 5 Guest(s)