capslock issue
by Amjad Yahya · in Torque Game Builder · 10/20/2011 (9:22 am) · 1 replies
I want to bind capslock key to a function, but not like any regular key when pressed down or pressed up, I want to bind the capslock "on" mode to a function and the "off" mode to another. Is this possible?
Thanks in Advance.
Thanks in Advance.
About the author
Associate William Lee Sims
Machine Code Games
Check out vcpptips.wordpress.com/2009/01/19/how-to-check-the-caps-lock-is-on-or-off/.
For my purpose, I just needed a function like this in my code
ConsoleFunction( isControlDown, bool, 1, 1, "()" ) { S32 test = GetKeyState( VK_CONTROL ); return (test == -127 || test == -128 ); }which I could then call from TorqueScript.In your case, you may need to put this test in the main loop and check when it changes state.