returns the status of a keyboard key.
If the returned value is negative then it means that the key is pressed
This function is equivalent to WIN32 GetAsyncKeyState() so for more information
read microsoft documentation for the function GetAsyncKeyState()
Parameters:
key_code:
Microsofot Virtual-Key Codes. See MSDN help for the values for each key.
Usually it is the ascii value but there are some special values
Example:
if(STATE_utilities_get_keyboard_key_state('G')<0)
do_something(); the key is pressed so do something ...
|