Table of Contents

Enum EventType

Namespace
Sdl3Sharp.Events
Assembly
Sdl3Sharp.dll

Represents an event type for an Event

public enum EventType : uint

Fields

AudioDeviceAdded = 4352

The event type AudioDeviceAdded

A new audio device is available.

Associated event structure: AudioDeviceEvent.

AudioDeviceFormatChanged = 4354

The event type AudioDeviceFormatChanged

An audio device's format has been changed by the system.

Associated event structure: AudioDeviceEvent.

AudioDeviceRemoved = 4353

The event type AudioDeviceRemoved

An audio device has been removed.

Associated event structure: AudioDeviceEvent.

CameraDeviceAdded = 5120

The event type CameraDeviceAdded

A new camera device is available.

Associated event structure: CameraDeviceEvent.

CameraDeviceApproved = 5122

The event type CameraDeviceApproved

A camera device has been approved for use by the user.

Associated event structure: CameraDeviceEvent.

CameraDeviceDenied = 5123

The event type CameraDeviceDenied

A camera device has been denied for use by the user.

Associated event structure: CameraDeviceEvent.

CameraDeviceRemoved = 5121

The event type CameraDeviceRemoved

A camera device has been removed.

Associated event structure: CameraDeviceEvent.

ClipboardUpdated = 2304

The event type ClipboardUpdated

The clipboard or primary selection changed.

Associated event structure: ClipboardEvent.

DidEnterBackground = 260

The 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 in onPause().

Associated event structure: Event.

DidEnterForeground = 262

The 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 in onResume().

Associated event structure: Event.

DisplayAdded = 338

The event type DisplayAdded

A display has been added to the system.

Associated event structure: DisplayEvent.

DisplayContentScaleChanged = 343

The event type DisplayContentScaleChanged

A display has changed content scale.

Associated event structure: DisplayEvent.

DisplayCurrentModeChanged = 342

The event type DisplayCurrentModeChanged

A display has changed current mode.

Associated event structure: DisplayEvent.

DisplayDesktopModeChanged = 341

The event type DisplayDesktopModeChanged

A display has changed desktop mode.

Associated event structure: DisplayEvent.

DisplayMoved = 340

The event type DisplayMoved

A display has changed position.

Associated event structure: DisplayEvent.

DisplayOrientationChanged = 337

The event type DisplayOrientationChanged

The display orientation has changed to Data1.

Associated event structure: DisplayEvent.

DisplayRemoved = 339

The event type DisplayRemoved

A display has been removed from the system.

Associated event structure: DisplayEvent.

DisplayUsableBoundsChanged = 344

The event type DisplayUsableBoundsChanged

A display has changed usable bounds.

Associated event structure: DisplayEvent.

DropBegin = 4098

The event type DropBegin

A new set of drops is beginning. Data is null.

Associated event structure: DropEvent.

DropCompleted = 4099

The event type DropCompleted

Current set of drops is now complete. Data is null.

Associated event structure: DropEvent.

DropFile = 4096

The event type DropFile

The system requests a file open. Data contains the filename.

Associated event structure: DropEvent.

DropPosition = 4100

The event type DropPosition

Position while moving over the window.

Associated event structure: DropEvent.

DropText = 4097

The event type DropText

A plain text drag-and-drop event occured. Data contains the text.

Associated event structure: DropEvent.

FingerCanceled = 1795

The event type FingerCanceled

Associated event structure: TouchFingerEvent.

FingerDown = 1792

The event type FingerDown

Associated event structure: TouchFingerEvent.

FingerMotion = 1794

The event type FingerMotion

Associated event structure: TouchFingerEvent.

FingerUp = 1793

The event type FingerUp

Associated event structure: TouchFingerEvent.

GamepadAdded = 1619

The event type GamepadAdded

A new gamepad has been inserted into the system.

Associated event structure: GamepadDeviceEvent.

GamepadAxisMotion = 1616

The event type GamepadAxisMotion

Gamepad axis motion.

Associated event structure: GamepadAxisEvent.

GamepadButtonDown = 1617

The event type GamepadButtonDown

Gamepad button pressed.

Associated event structure: GamepadButtonEvent.

GamepadButtonUp = 1618

The event type GamepadButtonUp

Gamepad button released.

Associated event structure: GamepadButtonEvent.

GamepadRemapped = 1621

The event type GamepadRemapped

Gamepad mapping was updated.

Associated event structure: GamepadDeviceEvent.

GamepadRemoved = 1620

The event type GamepadRemoved

A gamepad has been removed.

Associated event structure: GamepadDeviceEvent.

GamepadSensorUpdated = 1625

The event type GamepadSensorUpdated

Gamepad sensor was updated.

Associated event structure: GamepadSensorEvent.

GamepadSteamHandleUpdated = 1627

The event type GamepadSteamHandleUpdated

Gamepad Steam handle has changed.

Associated event structure: GamepadDeviceEvent.

GamepadTouchpadDown = 1622

The event type GamepadTouchpadDown

Gamepad touchpad was touched.

Associated event structure: GamepadTouchpadEvent.

GamepadTouchpadMotion = 1623

The event type GamepadTouchpadMotion

Gamepad touchpad finger was moved.

Associated event structure: GamepadTouchpadEvent.

GamepadTouchpadUp = 1624

The event type GamepadTouchpadUp

Gamepad touchpad finger was lifted.

Associated event structure: GamepadTouchpadEvent.

GamepadUpdateCompleted = 1626

The event type GamepadUpdateCompleted

Gamepad update is complete.

Associated event structure: GamepadDeviceEvent.

JoystickAdded = 1541

The event type JoystickAdded

A new joystick has been inserted into the system.

Associated event structure: JoyDeviceEvent.

JoystickAxisMotion = 1536

The event type JoystickAxisMotion

Joystick axis motion.

Associated event structure: JoyAxisEvent.

JoystickBallMotion = 1537

The event type JoystickBallMotion

Joystick trackball motion.

Associated event structure: JoyBallEvent.

JoystickBatteryUpdated = 1543

The event type JoystickBatteryUpdated

Joystick battery level change.

Associated event structure: JoyBatteryEvent.

JoystickButtonDown = 1539

The event type JoystickButtonDown

Joystick button pressed.

Associated event structure: JoyButtonEvent.

JoystickButtonUp = 1540

The event type JoystickButtonUp

Joystick button released.

Associated event structure: JoyButtonEvent.

JoystickHatMotion = 1538

The event type JoystickHatMotion

Joystick hat position change.

Associated event structure: JoyHatEvent.

JoystickRemoved = 1542

The event type JoystickRemoved

An opened joystick has been removed.

Associated event structure: JoyDeviceEvent.

JoystickUpdateCompleted = 1544

The event type JoystickUpdateCompleted

Joystick update is complete.

Associated event structure: JoyDeviceEvent.

KeyDown = 768

The event type KeyboardKeyDown

Key pressed.

Associated event structure: KeyboardEvent.

KeyUp = 769

The event type KeyboardKeyUp

Key released.

Associated event structure: KeyboardEvent.

KeyboardAdded = 773

The event type KeyboardAdded

A new keyboard has been inserted into the system.

Associated event structure: KeyboardDeviceEvent.

KeyboardRemoved = 774

The event type KeyboardRemoved

A keyboard has been removed.

Associated event structure: KeyboardDeviceEvent.

KeymapChanged = 772

The event type KeyboardKeymapChanged

Keymap changed due to a system event such as an input language or keyboard layout change.

Associated event structure: Event.

LocaleChanged = 263

The event type LocaleChanged

The user's locale preferences have changed.

Associated event structure: Event.

LowMemory = 258

The 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 in onTrimMemory().

Associated event structure: Event.

MouseAdded = 1028

The event type MouseAdded

A new mouse has been inserted into the system.

Associated event structure: MouseDeviceEvent.

MouseButtonDown = 1025

The event type MouseButtonDown

Mouse button pressed.

Associated event structure: MouseButtonEvent.

MouseButtonUp = 1026

The event type MouseButtonUp

Mouse button released.

Associated event structure: MouseButtonEvent.

MouseMotion = 1024

The event type MouseMotion

Mouse moved.

Associated event structure: MouseMotionEvent.

MouseRemoved = 1029

The event type MouseRemoved

A mouse has been removed.

Associated event structure: MouseDeviceEvent.

MouseWheel = 1027

The event type MouseWheelMotion

Mouse wheel motion.

Associated event structure: MouseWheelEvent.

PenAxisChanged = 4871

The event type PenAxisChanged

Pressure-sensitive pen angle/pressure/etc. changed.

Associated event structure: PenAxisEvent.

PenButtonDown = 4868

The event type PenButtonDown

Pressure-sensitive pen button pressed.

Associated event structure: PenButtonEvent.

PenButtonUp = 4869

The event type PenButtonUp

Pressure-sensitive pen button released.

Associated event structure: PenButtonEvent.

PenDown = 4866

The event type PenDown

Pressure-sensitive pen touched drawing surface.

Associated event structure: PenTouchEvent.

PenMotion = 4870

The event type PenMotion

Pressure-sensitive pen is moving on the tablet.

Associated event structure: PenMotionEvent.

PenProximityIn = 4864

The event type PenProximityIn

Pressure-sensitive pen has become available.

Associated event structure: PenProximityEvent.

PenProximityOut = 4865

The event type PenProximityOut

Pressure-sensitive pen has become unavailable.

Associated event structure: PenProximityEvent.

PenUp = 4867

The event type PenUp

Pressure-sensitive pen stopped touching drawing surface.

Associated event structure: PenTouchEvent.

PinchBegin = 1808

The event type PinchBegin

Pinch gesture started.

Associated event structure: PinchFingerEvent.

PinchEnd = 1810

The event type PinchEnd

Pinch gesture ended.

Associated event structure: PinchFingerEvent.

PinchUpdated = 1809

The event type PinchUpdate

Pinch gesture updated.

Associated event structure: PinchFingerEvent.

[Experimental("SDL6010")] Private0 = 16384

SDL_EVENT_PRIVATE0

Reserved event for private platforms. Do not use.

[Experimental("SDL6010")] Private1 = 16385

SDL_EVENT_PRIVATE1

Reserved event for private platforms. Do not use.

[Experimental("SDL6010")] Private2 = 16386

SDL_EVENT_PRIVATE2

Reserved event for private platforms. Do not use.

[Experimental("SDL6010")] Private3 = 16387

SDL_EVENT_PRIVATE3

Reserved event for private platforms. Do not use.

Quit = 256

The event type Quit

User-requested quit

Associated event structure: QuitEvent.

RenderDeviceLost = 8194

The event type RenderDeviceLost

The device has been lost and can't be recovered.

Associated event structure: RenderEvent.

RenderDeviceReset = 8193

The event type RenderDeviceReset

The device has been reset and all textures need to be recreated.

Associated event structure: RenderEvent.

RenderTargetsReset = 8192

The event type RenderTargetsReset

The render targets have been reset and their contents need to be updated.

Associated event structure: RenderEvent.

ScreenKeyboardHidden = 777

The event type ScreenKeyboardHidden

The on-screen keyboard has been hidden.

Associated event structure: Event.

ScreenKeyboardShown = 776

The event type ScreenKeyboardShown

The on-screen keyboard has been shown.

Associated event structure: Event.

SensorUpdated = 4608

The event type SensorUpdated

A sensor was updated.

Associated event structure: SensorEvent.

SystemThemeChanged = 264

The event type SystemThemeChanged

The system theme changed.

Associated event structure: Event.

Terminating = 257

The 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 in onDestroy().

Associated event structure: Event.

TextEditing = 770

The event type KeyboardTextEditing

Keyboard text editing (composition).

Associated event structure: TextEditingEvent.

TextEditingCandidates = 775

The event type KeyboardTextEditingCandidates

Keyboard text editing candidates.

Associated event structure: TextEditingCandidatesEvent.

TextInput = 771

The event type KeyboardTextInput

Keyboard text input.

Associated event structure: TextInputEvent.

WillEnterBackground = 259

The 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 in onPause().

Associated event structure: Event.

WillEnterForeground = 261

The 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 in onResume().

Associated event structure: Event.

WindowCloseRequested = 528

The event type WindowCloseRequested

The window manager requests that a window should be closed.

Associated event structure: WindowEvent.

WindowDestroyed = 537

The 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 = 531

The event type WindowDisplayChanged

A window has been moved to display Data1.

Associated event structure: WindowEvent.

WindowDisplayScaleChanged = 532

The event type WindowDisplayScaleChanged

A window's display scale has been changed.

Associated event structure: WindowEvent.

WindowEnterFullscreen = 535

The event type WindowEnterFullscreen

A window has entered fullscreen mode.

Associated event structure: WindowEvent.

WindowExposed = 516

The 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 = 526

The event type WindowFocusGained

A window has gained keyboard focus.

Associated event structure: WindowEvent.

WindowFocusLost = 527

The event type WindowFocusLost

A window has lost keyboard focus.

Associated event structure: WindowEvent.

WindowHdrStateChanged = 538

The event type WindowHdrStateChanged

A window's HDR properties have changed.

Associated event structure: WindowEvent.

WindowHidden = 515

The event type WindowHidden

A window has been hidden.

Associated event structure: WindowEvent.

WindowHitTest = 529

The event type WindowHitTest

A window had a hit test that wasn't SDL_HITTEST_NORMAL.

Associated event structure: WindowEvent.

WindowIccProfileChanged = 530

The event type WindowIccProfileChanged

The ICC profile of a window's display has changed.

Associated event structure: WindowEvent.

WindowLeaveFullscreen = 536

The event type WindowLeaveFullscreen

A window has left fullscreen mode.

Associated event structure: WindowEvent.

WindowMaximized = 522

The event type WindowMaximized

A window has been maximized.

Associated event structure: WindowEvent.

WindowMetalViewResized = 520

The event type WindowMetalViewResized

The pixel size of a Metal view associated with a window has changed.

Associated event structure: WindowEvent.

WindowMinimized = 521

The event type WindowMinimized

A window has been minimized.

Associated event structure: WindowEvent.

WindowMouseEnter = 524

The event type WindowMouseEnter

A window has gained mouse focus.

Associated event structure: WindowEvent.

WindowMouseLeave = 525

The event type WindowMouseLeave

A window has lost mouse focus.

Associated event structure: WindowEvent.

WindowMoved = 517

The event type WindowMoved

A window has been moved to Data1, Data2.

Associated event structure: WindowEvent.

WindowOccluded = 534

The event type WindowOccluded

A window has been occluded.

Associated event structure: WindowEvent.

WindowPixelSizeChanged = 519

The event type WindowPixelSizeChanged

The pixel size of a window has changed to Data1×Data2.

Associated event structure: WindowEvent.

WindowResized = 518

The event type WindowResized

A window has been resized to Data1×Data2.

Associated event structure: WindowEvent.

WindowRestored = 523

The event type WindowRestored

A window has been restored to normal size and position.

Associated event structure: WindowEvent.

WindowSafeAreaChanged = 533

The event type WindowSafeAreaChanged

A window's safe area has been changed.

Associated event structure: WindowEvent.

WindowShown = 514

The event type WindowShown

A window has been shown.

Associated event structure: WindowEvent.