[Seed7-users] Issues Concerning ButtonPressed
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Zachary M. <zao...@ou...> - 2020-06-27 19:16:06
|
Hey Thomas, I’ve come across a couple issues regarding the function “buttonPressed” (in the “keybd.s7i” file) that I’d like to bring to your attention (if you’ve got the time to look into them). I attached a file to demonstrate the issues I am having. The first issue is that the function “buttonPressed” doesn’t seem to work unless the function “busy_getc” (or something similar) is continually being called. You can see this in the program I attached if you comment out line 14, then the program can no longer be exited via the ‘q’ key. The second issue is that “buttonPressed” is unable to detect the when the keys “KEY_MOUSE_BACK” and “KEY_MOUSE_FWD” are being pressed; the function simply returns false regardless. You should also be able to see this in the attached program, as nothing will be written to the terminal when the aforementioned buttons are pressed. Other than these, though, I’m loving the extra functionality you’ve added to the input detection system. Thanks again for all your work, Zachary |