![]() |
Forum Index : Microcontroller and PC projects : CMM2: key interrupts
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4301 |
Hi folks, I don't suppose I've missed some trick on the CMM2 to get an interrupt for a special key (e.g. shift or ctrl) ? The best I can come up with is a fast tick interrupt combined with KEYDOWN(). ON KEY doesn't do the trick because that seems to be triggered only by characters being added to the serial buffer. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
frnno967 Senior Member ![]() Joined: 02/10/2020 Location: United StatesPosts: 104 |
I am interested in the answer to this question too. For no practical reason other than learning more about how KEYDOWN and ON KEY work at a deeper level. Jay Crutti: Ham Radio Operator, K5JCJ. Computer Enthusiast. Musician. Engineer. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10189 |
Correct. The modifier keys don't have an ascii character either real or pretend (function keys) so there is no other way of doing it than to poll |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4301 |
Thanks Peter. So far I've found the method that I've described to be adequate for my controller library use case. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |