chickadee » sdl-base » sdl-event-type

sdl-event-type sdl-eventprocedure

Returns an integer number denoting the type of event. This number will be equal to one of the following constants:

  • SDL_ACTIVEEVENT (activation event; occurs when application has gained or recieved focus; gain and state fields are applicable),
  • SDL_KEYDOWN and SDL_KEYUP (keypress event; occurs when a key has been pressed or released; state, sym, mod, scancode and unicode fields are available),
  • SDL_MOUSEMOTION, SDL_MOUSEBUTTONDOWN and SDL_MOUSEBUTTONUP (occurs when mouse is moved or mouse button in clicked or released; state, x, y, xrel and yrel fields are available),
  • SDL_JOYAXISMOTION,
  • SDL_JOYBALLMOTION,
  • SDL_JOYHATMOTION,
  • SDL_JOYBUTTONDOWN and SDL_JOYBUTTONUP,
  • SDL_QUIT,
  • SDL_SYSWMEVENT,
  • SDL_VIDEORESIZE,
  • SDL_VIDEOEXPOSE,
  • SDL_USEREVENT or higher.