Hi all
How do I retrieve the length of the array returned by
SDL_GetKeyState(NULL)? I need this this because I want to store the
keyboard state of both the current frame/update and the previous one, so
I need to copy this array every frame.
Thanks in advance!
/Per
Per Thulin wrote:
How do I retrieve the length of the array returned by
SDL_GetKeyState(NULL)? I need this this because I want to store the
keyboard state of both the current frame/update and the previous one, so
I need to copy this array every frame.
int count;
Uint8 *state;
state = SDL_GetKeyState(&count);
August
Thank you! Worked like a charm.
August Karlstrom wrote:> Per Thulin wrote:
How do I retrieve the length of the array returned by
SDL_GetKeyState(NULL)? I need this this because I want to store the
keyboard state of both the current frame/update and the previous one, so
I need to copy this array every frame.
int count;
Uint8 *state;
state = SDL_GetKeyState(&count);
August
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl