[SDL] Length of the array returned by SDL_GetKeyState(NULL)
Per Thulin
petb05 at student.bth.se
Fri Mar 24 06:25:07 PST 2006
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
>
More information about the SDL
mailing list