Hi
jjarrell , and welcome!
jjarrell wrote: ↑Tue Jan 28, 2025 6:57 pm
For the example below, you press a key and then the program ends showing you entered the same key 10 times.
First of all, I apologize for the issue you encountered. The bug has been fixed for the commands you reported, and the fix is already up on the repository and available as COLDFIX (sandbox will be updated within an hour or so). Please, update to
COLDFIX v1.17 [rev. 20250128] using UGBASIC-IDE or, if you are using the command line, download it directly by accessing this link:
https://ugbasic.iwashere.eu/install
jjarrell wrote: ↑Tue Jan 28, 2025 6:57 pm
For the example below, you press a key and then the program ends showing you entered the same key 10 times.
Thank you for the example: it works correctly using the latest COLDFIX.
jjarrell wrote: ↑Tue Jan 28, 2025 6:57 pm
Would you use the DEFINE INPUT/KEYBOARD DELAY command? If so, what is a good example of how to use it?
Actually, those parameters are useful and supported only if you are using asynchronous mode for keyboard access. In case of synchronous mode, instead, the parameters may or may not be respected, depending on the target in use. Note that asynchronous mode, while it may be effective in some respects, may be less efficient than synchronous mode on some targets (like
coco3). On
this page you can find a brief introduction, but I suggest you refer to the
user manual, where these aspects are better described.
To activate asynchronous mode you need to use the directive:
Hope this helps!