Inhibition of Cap lock key and Num lock key (Developers)
> The timing issues you have with the Lock keys (Caps, Num, & Scroll) are
> probably just related to delays with the keyboard hardware turning the
> LED's on and off. The software handling part of the Lock keys just sets a
> flag in memory, and you wouldn't even notice it from a timing perspective.
You are right !
Actually I program under djgpp / allegro. I hadn't checked yet all the keyboard function, but I looked at the manual and I found a simple flag : "key_led_flag"
So, after reading your post, I tried this... and indeed, the lock keys no longer take enourmous cpu time when pressed! (and of course the led doesn't change anymore).
(And in Allegro context the <Pause> key doesn't seem to create problems.)
Thanks.
Complete thread:
- Inhibition of Cap lock key and Num lock key - Damien, 16.03.2013, 13:55 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Inhibition of Cap lock key and Num lock key - bretjohn, 16.03.2013, 16:41
- Inhibition of Cap lock key and Num lock key - Damien, 16.03.2013, 21:34
- Inhibition of Cap lock key and Num lock key - bretjohn, 17.03.2013, 08:47
- Inhibition of Cap lock key and Num lock key - Damien, 17.03.2013, 13:42
- Inhibition of Cap lock key and Num lock key - bretjohn, 17.03.2013, 08:47
- Inhibition of Cap lock key and Num lock key - Damien, 16.03.2013, 21:34
- Inhibition of Cap lock key and Num lock key - bretjohn, 16.03.2013, 16:41
Mix view