I would like to get, for example, pressing the 3 ( KEY_NUM3) key .
I tried getKeyStates, but it only detects game action keys.
How can I get key states without a game?
(I redefined the functions keyPressedand the keyReleasedCanvas and saved the key states in the array (I use Vectorfor storage, but I think I could store them in the array if this is a problem), but this does not seem very nice)
source
share