I'm trying to check if the colon key is pressed, I'm using a English keyboard which means colon is shift
+ ;
, my though was to read the keyboard state and then check the status of the scancode:
SDL_PumpEvents();
const uint8 *keyState = SDL_GetKeyboardState(NULL);
printf("keystate %d\n", keyState[scancode]);
but then I realized there is a scancode for the keypad colon SDL_SCANCODE_KP_COLON
equivalent toSDLK_KP_COLON
, but there is no scancode for SDLK_COLON
(In case you are wondering: I tried with the keypad version and is not working).
So, I wonder why there is no equivalent scancode for SDLK_COLON
and what's the best way to do this instead?