I have an internal menu system within a program that has numerous functions controlled by the keyboard or mouse. ie: I can press the letter B to do one thing or the letter b to do another.
This causes a problem IF the CapsLock key is ON - whereby the key pressed continues to do whatever function is attached to it - the 'tactile' brain function of pressing the Shift Key + Another key is shot down.
Is there any way of detecting that the CapsLock key is already pressed and thereby being able to reverse the keystroke function. ie: Letter B now takes the function of letter b & vice versa.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have an internal menu system within a program that has numerous functions controlled by the keyboard or mouse. ie: I can press the letter B to do one thing or the letter b to do another.
This causes a problem IF the CapsLock key is ON - whereby the key pressed continues to do whatever function is attached to it - the 'tactile' brain function of pressing the Shift Key + Another key is shot down.
Is there any way of detecting that the CapsLock key is already pressed and thereby being able to reverse the keystroke function. ie: Letter B now takes the function of letter b & vice versa.
I found a bit of C code on the net & added it to a C routine I use for keystroke/mouse input.