[SDL] RGBA->RGBA blitting again

MagerValp MagerValp at cling.gu.se
Thu Nov 27 04:31:00 PST 2003

Am Dienstag, 11. November 2003 12:00 schrieb Alessandro Ardolino:
> Hi,
> how can I handle a key which is press and hold on?
> Now I must press a key repeatly to move my sprite.
> thanks

Please take a look at


section "Game-type Input".

Basically, when you've got the event.type SDL_KEYDOWN you store this state
in a variable and move your sprite until you get the event.type SDL_KEYUP.


More information about the SDL mailing list