I think it is pretty self explanatory. I need to be able to convert a const Uint8 *
to a Uint8 *
. I have tried simply just put a const Uint8 *
into const Uint8 *
and using static_cast
. however, every time it gave me this error:
error:
assigning to 'Uint8 *' (aka 'unsigned char *') from incompatible type
'const Uint8 *' (aka 'const unsigned char *')
keyboardstate = SDL_GetKeyboardState(NULL);
Anybody know how I can convert it successfully?