//Then of course when you want to perform whatever it is you want to do when caps lock is toggled you could use
if( _capsToggled )
//Do this if caps is toggled
else
//Do this if not
I get where you're getting with that, but how do we know that the initial state is false? For my example I wanna use it for hidden password warning to the end-user by the program in a form: "Beware, your Caps is on!". How does the program know the initial state of the CapsLock so that it knows the alternate in your paradigm? The import System; function Update () { print(Console.CapsLock); } should do exactly that job, but in my case for some reason is not working.
I get where you're getting with that, but how do we know that the initial state is false? For my example I wanna use it for hidden password warning to the end-user by the program in a form: "Beware, your Caps is on!". How does the program know the initial state of the CapsLock so that it knows the alternate in your paradigm? The import System; function Update () { print(Console.CapsLock); } should do exactly that job, but in my case for some reason is not working.
– zazoum