-next-
Handling Events

The "SDL_Event" data structure contains a lot of stuff in it:

Based on the value of 'type,' you'll know what sub-structure to look into.

(For example, if 'type' is SDL_KEYDOWN or SDL_KEYUP, you want to look inside 'key' to find out what key it was.)