Enum EventType
Represents an event type for an Event
public enum EventType : uint
Fields
AudioDeviceAdded = 4352The event type AudioDeviceAdded
A new audio device is available.
Associated event structure: AudioDeviceEvent.
AudioDeviceFormatChanged = 4354The event type AudioDeviceFormatChanged
An audio device's format has been changed by the system.
Associated event structure: AudioDeviceEvent.
AudioDeviceRemoved = 4353The event type AudioDeviceRemoved
An audio device has been removed.
Associated event structure: AudioDeviceEvent.
CameraDeviceAdded = 5120The event type CameraDeviceAdded
A new camera device is available.
Associated event structure: CameraDeviceEvent.
CameraDeviceApproved = 5122The event type CameraDeviceApproved
A camera device has been approved for use by the user.
Associated event structure: CameraDeviceEvent.
CameraDeviceDenied = 5123The event type CameraDeviceDenied
A camera device has been denied for use by the user.
Associated event structure: CameraDeviceEvent.
CameraDeviceRemoved = 5121The event type CameraDeviceRemoved
A camera device has been removed.
Associated event structure: CameraDeviceEvent.
ClipboardUpdated = 2304The event type ClipboardUpdated
The clipboard or primary selection changed.
Associated event structure: ClipboardEvent.
DidEnterBackground = 260The event type DidEnterBackground
The application did enter the background and may not get CPU for some time. This event must be handled in an event handler registered with EventWatch. Called on iOS in
applicationDidEnterBackground(). Called on Android inonPause().Associated event structure: Event.
DidEnterForeground = 262The event type DidEnterForeground
The application is now interactive. This event must be handled in an event handler registered with EventWatch. Called on iOS in
applicationDidBecomeActive(). Called on Android inonResume().Associated event structure: Event.
DisplayAdded = 338The event type DisplayAdded
A display has been added to the system.
Associated event structure: DisplayEvent.
DisplayContentScaleChanged = 343The event type DisplayContentScaleChanged
A display has changed content scale.
Associated event structure: DisplayEvent.
DisplayCurrentModeChanged = 342The event type DisplayCurrentModeChanged
A display has changed current mode.
Associated event structure: DisplayEvent.
DisplayDesktopModeChanged = 341The event type DisplayDesktopModeChanged
A display has changed desktop mode.
Associated event structure: DisplayEvent.
DisplayMoved = 340The event type DisplayMoved
A display has changed position.
Associated event structure: DisplayEvent.
DisplayOrientationChanged = 337The event type DisplayOrientationChanged
The display orientation has changed to Data1.
Associated event structure: DisplayEvent.
DisplayRemoved = 339The event type DisplayRemoved
A display has been removed from the system.
Associated event structure: DisplayEvent.
DisplayUsableBoundsChanged = 344The event type DisplayUsableBoundsChanged
A display has changed usable bounds.
Associated event structure: DisplayEvent.
DropBegin = 4098The event type DropBegin
A new set of drops is beginning. Data is null.
Associated event structure: DropEvent.
DropCompleted = 4099The event type DropCompleted
Current set of drops is now complete. Data is null.
Associated event structure: DropEvent.
DropFile = 4096The event type DropFile
The system requests a file open. Data contains the filename.
Associated event structure: DropEvent.
DropPosition = 4100The event type DropPosition
Position while moving over the window.
Associated event structure: DropEvent.
DropText = 4097The event type DropText
A plain text drag-and-drop event occured. Data contains the text.
Associated event structure: DropEvent.
FingerCanceled = 1795The event type FingerCanceled
Associated event structure: TouchFingerEvent.
FingerDown = 1792The event type FingerDown
Associated event structure: TouchFingerEvent.
FingerMotion = 1794The event type FingerMotion
Associated event structure: TouchFingerEvent.
FingerUp = 1793The event type FingerUp
Associated event structure: TouchFingerEvent.
GamepadAdded = 1619The event type GamepadAdded
A new gamepad has been inserted into the system.
Associated event structure: GamepadDeviceEvent.
GamepadAxisMotion = 1616The event type GamepadAxisMotion
Gamepad axis motion.
Associated event structure: GamepadAxisEvent.
GamepadButtonDown = 1617The event type GamepadButtonDown
Gamepad button pressed.
Associated event structure: GamepadButtonEvent.
GamepadButtonUp = 1618The event type GamepadButtonUp
Gamepad button released.
Associated event structure: GamepadButtonEvent.
GamepadRemapped = 1621The event type GamepadRemapped
Gamepad mapping was updated.
Associated event structure: GamepadDeviceEvent.
GamepadRemoved = 1620The event type GamepadRemoved
A gamepad has been removed.
Associated event structure: GamepadDeviceEvent.
GamepadSensorUpdated = 1625The event type GamepadSensorUpdated
Gamepad sensor was updated.
Associated event structure: GamepadSensorEvent.
GamepadSteamHandleUpdated = 1627The event type GamepadSteamHandleUpdated
Gamepad Steam handle has changed.
Associated event structure: GamepadDeviceEvent.
GamepadTouchpadDown = 1622The event type GamepadTouchpadDown
Gamepad touchpad was touched.
Associated event structure: GamepadTouchpadEvent.
GamepadTouchpadMotion = 1623The event type GamepadTouchpadMotion
Gamepad touchpad finger was moved.
Associated event structure: GamepadTouchpadEvent.
GamepadTouchpadUp = 1624The event type GamepadTouchpadUp
Gamepad touchpad finger was lifted.
Associated event structure: GamepadTouchpadEvent.
GamepadUpdateCompleted = 1626The event type GamepadUpdateCompleted
Gamepad update is complete.
Associated event structure: GamepadDeviceEvent.
JoystickAdded = 1541The event type JoystickAdded
A new joystick has been inserted into the system.
Associated event structure: JoyDeviceEvent.
JoystickAxisMotion = 1536The event type JoystickAxisMotion
Joystick axis motion.
Associated event structure: JoyAxisEvent.
JoystickBallMotion = 1537The event type JoystickBallMotion
Joystick trackball motion.
Associated event structure: JoyBallEvent.
JoystickBatteryUpdated = 1543The event type JoystickBatteryUpdated
Joystick battery level change.
Associated event structure: JoyBatteryEvent.
JoystickButtonDown = 1539The event type JoystickButtonDown
Joystick button pressed.
Associated event structure: JoyButtonEvent.
JoystickButtonUp = 1540The event type JoystickButtonUp
Joystick button released.
Associated event structure: JoyButtonEvent.
JoystickHatMotion = 1538The event type JoystickHatMotion
Joystick hat position change.
Associated event structure: JoyHatEvent.
JoystickRemoved = 1542The event type JoystickRemoved
An opened joystick has been removed.
Associated event structure: JoyDeviceEvent.
JoystickUpdateCompleted = 1544The event type JoystickUpdateCompleted
Joystick update is complete.
Associated event structure: JoyDeviceEvent.
KeyDown = 768The event type KeyboardKeyDown
Key pressed.
Associated event structure: KeyboardEvent.
KeyUp = 769The event type KeyboardKeyUp
Key released.
Associated event structure: KeyboardEvent.
KeyboardAdded = 773The event type KeyboardAdded
A new keyboard has been inserted into the system.
Associated event structure: KeyboardDeviceEvent.
KeyboardRemoved = 774The event type KeyboardRemoved
A keyboard has been removed.
Associated event structure: KeyboardDeviceEvent.
KeymapChanged = 772The event type KeyboardKeymapChanged
Keymap changed due to a system event such as an input language or keyboard layout change.
Associated event structure: Event.
LocaleChanged = 263The event type LocaleChanged
The user's locale preferences have changed.
Associated event structure: Event.
LowMemory = 258The event type LowMemory
The application is low on memory, free memory if possible. This event must be handled in an event handler registered with EventWatch. Called on iOS in
applicationDidReceiveMemoryWarning(). Called on Android inonTrimMemory().Associated event structure: Event.
MouseAdded = 1028The event type MouseAdded
A new mouse has been inserted into the system.
Associated event structure: MouseDeviceEvent.
MouseButtonDown = 1025The event type MouseButtonDown
Mouse button pressed.
Associated event structure: MouseButtonEvent.
MouseButtonUp = 1026The event type MouseButtonUp
Mouse button released.
Associated event structure: MouseButtonEvent.
MouseMotion = 1024The event type MouseMotion
Mouse moved.
Associated event structure: MouseMotionEvent.
MouseRemoved = 1029The event type MouseRemoved
A mouse has been removed.
Associated event structure: MouseDeviceEvent.
MouseWheel = 1027The event type MouseWheelMotion
Mouse wheel motion.
Associated event structure: MouseWheelEvent.
PenAxisChanged = 4871The event type PenAxisChanged
Pressure-sensitive pen angle/pressure/etc. changed.
Associated event structure: PenAxisEvent.
PenButtonDown = 4868The event type PenButtonDown
Pressure-sensitive pen button pressed.
Associated event structure: PenButtonEvent.
PenButtonUp = 4869The event type PenButtonUp
Pressure-sensitive pen button released.
Associated event structure: PenButtonEvent.
PenDown = 4866The event type PenDown
Pressure-sensitive pen touched drawing surface.
Associated event structure: PenTouchEvent.
PenMotion = 4870The event type PenMotion
Pressure-sensitive pen is moving on the tablet.
Associated event structure: PenMotionEvent.
PenProximityIn = 4864The event type PenProximityIn
Pressure-sensitive pen has become available.
Associated event structure: PenProximityEvent.
PenProximityOut = 4865The event type PenProximityOut
Pressure-sensitive pen has become unavailable.
Associated event structure: PenProximityEvent.
PenUp = 4867The event type PenUp
Pressure-sensitive pen stopped touching drawing surface.
Associated event structure: PenTouchEvent.
PinchBegin = 1808The event type PinchBegin
Pinch gesture started.
Associated event structure: PinchFingerEvent.
PinchEnd = 1810The event type PinchEnd
Pinch gesture ended.
Associated event structure: PinchFingerEvent.
PinchUpdated = 1809The event type PinchUpdate
Pinch gesture updated.
Associated event structure: PinchFingerEvent.
[Experimental("SDL6010")] Private0 = 16384SDL_EVENT_PRIVATE0
Reserved event for private platforms. Do not use.
[Experimental("SDL6010")] Private1 = 16385SDL_EVENT_PRIVATE1
Reserved event for private platforms. Do not use.
[Experimental("SDL6010")] Private2 = 16386SDL_EVENT_PRIVATE2
Reserved event for private platforms. Do not use.
[Experimental("SDL6010")] Private3 = 16387SDL_EVENT_PRIVATE3
Reserved event for private platforms. Do not use.
Quit = 256The event type Quit
User-requested quit
Associated event structure: QuitEvent.
RenderDeviceLost = 8194The event type RenderDeviceLost
The device has been lost and can't be recovered.
Associated event structure: RenderEvent.
RenderDeviceReset = 8193The event type RenderDeviceReset
The device has been reset and all textures need to be recreated.
Associated event structure: RenderEvent.
RenderTargetsReset = 8192The event type RenderTargetsReset
The render targets have been reset and their contents need to be updated.
Associated event structure: RenderEvent.
ScreenKeyboardHidden = 777The event type ScreenKeyboardHidden
The on-screen keyboard has been hidden.
Associated event structure: Event.
ScreenKeyboardShown = 776The event type ScreenKeyboardShown
The on-screen keyboard has been shown.
Associated event structure: Event.
SensorUpdated = 4608The event type SensorUpdated
A sensor was updated.
Associated event structure: SensorEvent.
SystemThemeChanged = 264The event type SystemThemeChanged
The system theme changed.
Associated event structure: Event.
Terminating = 257The event type Terminating
The application is being terminated by the OS. This event must be handled in an event handler registered with EventWatch. Called on iOS in
applicationWillTerminate(). Called on Android inonDestroy().Associated event structure: Event.
TextEditing = 770The event type KeyboardTextEditing
Keyboard text editing (composition).
Associated event structure: TextEditingEvent.
TextEditingCandidates = 775The event type KeyboardTextEditingCandidates
Keyboard text editing candidates.
Associated event structure: TextEditingCandidatesEvent.
TextInput = 771The event type KeyboardTextInput
Keyboard text input.
Associated event structure: TextInputEvent.
WillEnterBackground = 259The event type WillEnterBackground
The application is about to enter the background. This event must be handled in an event handler registered with EventWatch. Called on iOS in
applicationWillResignActive(). Called on Android inonPause().Associated event structure: Event.
WillEnterForeground = 261The event type WillEnterForeground
The application is about to enter the foreground. This event must be handled in an event handler registered with EventWatch. Called on iOS in
applicationWillEnterForeground(). Called on Android inonResume().Associated event structure: Event.
WindowCloseRequested = 528The event type WindowCloseRequested
The window manager requests that a window should be closed.
Associated event structure: WindowEvent.
WindowDestroyed = 537The event type WindowDestroyed
The window with the associated ID is being or has been destroyed. If this message is being handled in an event watcher, the window handle is still valid and can still be used to retrieve any properties associated with the window. Otherwise, the handle has already been destroyed and all resources associated with it are invalid.
Associated event structure: WindowEvent.
WindowDisplayChanged = 531The event type WindowDisplayChanged
A window has been moved to display Data1.
Associated event structure: WindowEvent.
WindowDisplayScaleChanged = 532The event type WindowDisplayScaleChanged
A window's display scale has been changed.
Associated event structure: WindowEvent.
WindowEnterFullscreen = 535The event type WindowEnterFullscreen
A window has entered fullscreen mode.
Associated event structure: WindowEvent.
WindowExposed = 516The event type WindowExposed
A window has been exposed and should be redrawn, and can be redrawn directly from event watchers/handlers for this event.
Associated event structure: WindowEvent.
WindowFocusGained = 526The event type WindowFocusGained
A window has gained keyboard focus.
Associated event structure: WindowEvent.
WindowFocusLost = 527The event type WindowFocusLost
A window has lost keyboard focus.
Associated event structure: WindowEvent.
WindowHdrStateChanged = 538The event type WindowHdrStateChanged
A window's HDR properties have changed.
Associated event structure: WindowEvent.
WindowHidden = 515The event type WindowHidden
A window has been hidden.
Associated event structure: WindowEvent.
WindowHitTest = 529The event type WindowHitTest
A window had a hit test that wasn't SDL_HITTEST_NORMAL.
Associated event structure: WindowEvent.
WindowIccProfileChanged = 530The event type WindowIccProfileChanged
The ICC profile of a window's display has changed.
Associated event structure: WindowEvent.
WindowLeaveFullscreen = 536The event type WindowLeaveFullscreen
A window has left fullscreen mode.
Associated event structure: WindowEvent.
WindowMaximized = 522The event type WindowMaximized
A window has been maximized.
Associated event structure: WindowEvent.
WindowMetalViewResized = 520The event type WindowMetalViewResized
The pixel size of a Metal view associated with a window has changed.
Associated event structure: WindowEvent.
WindowMinimized = 521The event type WindowMinimized
A window has been minimized.
Associated event structure: WindowEvent.
WindowMouseEnter = 524The event type WindowMouseEnter
A window has gained mouse focus.
Associated event structure: WindowEvent.
WindowMouseLeave = 525The event type WindowMouseLeave
A window has lost mouse focus.
Associated event structure: WindowEvent.
WindowMoved = 517The event type WindowMoved
A window has been moved to Data1, Data2.
Associated event structure: WindowEvent.
WindowOccluded = 534The event type WindowOccluded
A window has been occluded.
Associated event structure: WindowEvent.
WindowPixelSizeChanged = 519The event type WindowPixelSizeChanged
The pixel size of a window has changed to Data1×Data2.
Associated event structure: WindowEvent.
WindowResized = 518The event type WindowResized
A window has been resized to Data1×Data2.
Associated event structure: WindowEvent.
WindowRestored = 523The event type WindowRestored
A window has been restored to normal size and position.
Associated event structure: WindowEvent.
WindowSafeAreaChanged = 533The event type WindowSafeAreaChanged
A window's safe area has been changed.
Associated event structure: WindowEvent.
WindowShown = 514The event type WindowShown
A window has been shown.
Associated event structure: WindowEvent.