Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Inhibition of Cap lock key and Num lock key (Developers)

posted by Damien, 17.03.2013, 13:42

> 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:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum