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.

JoystickAxisMotionSDL_JOYAXISMOTION

A Joystick axis has moved

JoystickButtonDownSDL_JOYBUTTONDOWN

A Joystick button is pressed

JoystickButtonUpSDL_JOYBUTTONUP

A Joystick button is released

JoystickHatMotionSDL_JOYHATMOTION

A Joystick hat has moved

JoystickDeviceAddedSDL_JOYDEVICEADDED

A Joystick was added

JoystickDeviceRemovedSDL_JOYDEVICEREMOVED

A Joystick was removed

ControllerAxisMotionSDL_CONTROLLERAXISMOTION

A GameController axis has moved

ControllerButtonDownSDL_CONTROLLERBUTTONDOWN

A GameController button is pressed

ControllerButtonUpSDL_CONTROLLERBUTTONUP

A GameController button is released

ControllerDeviceAddedSDL_CONTROLLERDEVICEADDED

A GameController was added

ControllerDeviceRemovedSDL_CONTROLLERDEVICEREMOVED

A GameController was removed

ControllerDeviceMappedSDL_CONTROLLERDEVICEREMAPPED

A GameController was mapped

FingerMotionSDL_FINGERMOTION

A finger was moved onto the touch device

FingerDownSDL_FINGERDOWN

A finger is pressed onto the touch device

FingerUpSDL_FINGERUP

A finger is released of the touch device

Meta