Skip to main content
gamedev.net
🔒 Locked

Checking and setting NumLock status

Started by Fallen_Angel 0 replies 150+ views
Original Post
Fallen_Angel
Fallen_Angel
How would I go about checking whether NumLock is turned on, and if not, how would I then enable it? This is using C++ by the way. Thanks.
Fruny
Fruny
You can try accessing it directly in memory :

http://obelix.dawsoncollege.qc.ca/~dhackett/531/keyboard_status_byte.htm

good luck bypassing Windows though.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.