I would like to have a boolean event toggle when a key is pressed. Specifically, the \'s\' key. I have been pointed to the function GetKeyState(), which supposedly works und
From what I understand you need to do:
if( GetKeyState(115) & 0x8000 ) { }
The highest bit tells if key is pressed. The lowest tells if key is toggled (like, if caps lock is turned on).