[SDL] SDL event behavior
prefect_ at gmx.net
Tue Jan 14 07:00:02 PST 2003
-----BEGIN PGP SIGNED MESSAGE-----
On Tuesday 14 January 2003 11:15, Michael Alger wrote:
> The usual way of handling input for games is to disable key repeating,
> and just catch the KEYDOWN/KEYUP event and use a flag to keep track of
> the state of the key. You then do the sprite movement outside of the
> event handler code based on what controls are currently being applied.
> Typically, this is done using a bitfield to save memory.
Note that SDL already does this for you. Check out the function
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the SDL