|visits||member for||2 years, 7 months|
|seen||Sep 12 '12 at 13:07|
How can I process continuously-held keys with SDL?
You should call SDL_PumpEvents() before SDL_GetKeyState(), otherwise you're operating on last frame's key state. Alternatively, call SDL_GetKeyState() after the SDL_PollEvents() loop.