Event.Type

All supported Event Types.

Values

ValueMeaning
QuitSDL_QUIT

Quit Event. Time to close the window.

WindowSDL_WINDOWEVENT

Something happens with the window.

KeyDownSDL_KEYDOWN

A key is pressed.

KeyUpSDL_KEYUP

A key is released.

MouseMotionSDL_MOUSEMOTION

The mouse has moved.

MouseButtonDownSDL_MOUSEBUTTONDOWN

A mouse button is pressed.

MouseButtonUpSDL_MOUSEBUTTONUP

A mouse button is released.

MouseWheelSDL_MOUSEWHEEL

The mouse wheel has scolled.

TextEditSDL_TEXTEDITING

< Keyboard text editing (composition)

TextInputSDL_TEXTINPUT

< Keyboard text input

Meta