1#ifndef SDL3PP_EVENTS_H_
2#define SDL3PP_EVENTS_H_
6#include <SDL3/SDL_events.h>
7#include "SDL3pp_stdinc.h"
8#include "SDL3pp_video.h"
89 SDL_EVENT_WILL_ENTER_BACKGROUND;
104 SDL_EVENT_WILL_ENTER_FOREGROUND;
147 SDL_EVENT_DISPLAY_DESKTOP_MODE_CHANGED;
153 SDL_EVENT_DISPLAY_CURRENT_MODE_CHANGED;
159 SDL_EVENT_DISPLAY_CONTENT_SCALE_CHANGED;
162 SDL_EVENT_DISPLAY_FIRST;
165 SDL_EVENT_DISPLAY_LAST;
197 SDL_EVENT_WINDOW_PIXEL_SIZE_CHANGED;
203 SDL_EVENT_WINDOW_METAL_VIEW_RESIZED;
244 SDL_EVENT_WINDOW_CLOSE_REQUESTED;
255 SDL_EVENT_WINDOW_ICCPROF_CHANGED;
261 SDL_EVENT_WINDOW_DISPLAY_CHANGED;
267 SDL_EVENT_WINDOW_DISPLAY_SCALE_CHANGED;
273 SDL_EVENT_WINDOW_SAFE_AREA_CHANGED;
284 SDL_EVENT_WINDOW_ENTER_FULLSCREEN;
290 SDL_EVENT_WINDOW_LEAVE_FULLSCREEN;
305 SDL_EVENT_WINDOW_HDR_STATE_CHANGED;
308 SDL_EVENT_WINDOW_FIRST;
352 SDL_EVENT_TEXT_EDITING_CANDIDATES;
423 SDL_EVENT_JOYSTICK_BATTERY_UPDATED;
429 SDL_EVENT_JOYSTICK_UPDATE_COMPLETE;
465 SDL_EVENT_GAMEPAD_TOUCHPAD_DOWN;
471 SDL_EVENT_GAMEPAD_TOUCHPAD_MOTION;
482 SDL_EVENT_GAMEPAD_SENSOR_UPDATE;
488 SDL_EVENT_GAMEPAD_UPDATE_COMPLETE;
494 SDL_EVENT_GAMEPAD_STEAM_HANDLE_UPDATED;
501 SDL_EVENT_FINGER_MOTION;
504 SDL_EVENT_FINGER_CANCELED;
550 SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED;
606 SDL_EVENT_CAMERA_DEVICE_REMOVED;
612 SDL_EVENT_CAMERA_DEVICE_APPROVED;
659 SDL_EVENT_ENUM_PADDING;
1114 return SDL_PeepEvents(events, numevents, action, minType, maxType);
1134inline bool HasEvent(Uint32 type) {
return SDL_HasEvent(type); }
1156 return SDL_HasEvents(minType, maxType);
1185inline void FlushEvent(Uint32 type) {
return SDL_FlushEvent(type); }
1215 return SDL_FlushEvents(minType, maxType);
1304 return std::nullopt;
1386 return SDL_WaitEventTimeout(event, timeoutMS);
1415 return std::nullopt;
1447 std::chrono::milliseconds timeoutDuration)
1475 std::chrono::milliseconds timeoutDuration)
1478 return std::nullopt;
1600 using CallbackHandle::CallbackHandle;
1645 return SDL_SetEventFilter(filter, userdata);
1691 using Wrapper = UniqueCallbackWrapper<EventFilterCB>;
1693 [](
void* userdata, SDL_Event* event) {
1694 return Wrapper::Call(userdata, *event);
1696 Wrapper::Wrap(std::move(filter)));
1718 CheckError(SDL_GetEventFilter(filter, userdata));
1747 return [filter](
const Event& event) {
1748 return filter(
nullptr,
const_cast<Event*
>(&event));
1750 if (
auto cb = Wrapper::at(userdata))
return cb;
1751 return [filter, userdata](
const Event& event) {
1752 return filter(userdata,
const_cast<Event*
>(&event));
1757inline bool EventWatchAuxCallback(
void* userdata,
Event* event)
1794 CheckError(SDL_AddEventWatch(filter, userdata));
1833 auto cb = Wrapper::Wrap(std::move(filter));
1834 if (!SDL_AddEventWatch(&EventWatchAuxCallback, &cb)) {
1835 Wrapper::release(cb);
1858 SDL_RemoveEventWatch(filter, userdata);
1879 Wrapper::release(handle);
1902 SDL_FilterEvents(filter, userdata);
1928 [](
void* userdata, SDL_Event* event) {
1948 return SDL_SetEventEnabled(type, enabled);
1981 return SDL_RegisterEvents(numevents);
2001 return CheckError(SDL_GetWindowFromEvent(&event));
A typesafe handle for callback.
Definition SDL3pp_callbackWrapper.h:21
An exception that returns GetError()
Definition SDL3pp_error.h:167
constexpr void CheckError(bool result)
Check and throw if returned value from SDL is an error.
Definition SDL3pp_error.h:206
void FlushEvent(Uint32 type)
Clear events of a specific type from the event queue.
Definition SDL3pp_events.h:1185
void RemoveEventWatch(EventFilter filter, void *userdata)
Remove an event watch callback added with SDL_AddEventWatch().
Definition SDL3pp_events.h:1856
int PeepEvents(Event *events, int numevents, EventAction action, Uint32 minType=EVENT_FIRST, Uint32 maxType=EVENT_LAST)
Check the event queue for messages and optionally return them.
Definition SDL3pp_events.h:1108
SDL_PenProximityEvent PenProximityEvent
Pressure-sensitive pen proximity event structure (event.pmotion.
Definition SDL3pp_events.h:914
SDL_GamepadButtonEvent GamepadButtonEvent
Gamepad button event structure (event.gbutton.
Definition SDL3pp_events.h:825
SDL_WindowEvent WindowEvent
Window state change event data (event.window.
Definition SDL3pp_events.h:682
bool HasEvents(Uint32 minType=EVENT_FIRST, Uint32 maxType=EVENT_LAST)
Check for the existence of certain event types in the event queue.
Definition SDL3pp_events.h:1154
SDL_RenderEvent RenderEvent
Renderer event structure (event.render.
Definition SDL3pp_events.h:876
SDL_JoyAxisEvent JoyAxisEvent
Joystick axis motion event structure (event.jaxis.
Definition SDL3pp_events.h:771
SDL_CameraDeviceEvent CameraDeviceEvent
Camera device event structure (event.cdevice.
Definition SDL3pp_events.h:869
SDL_GamepadAxisEvent GamepadAxisEvent
Gamepad axis motion event structure (event.gaxis.
Definition SDL3pp_events.h:818
SDL_EventFilter EventFilter
A function pointer used for callbacks that watch the event queue.
Definition SDL3pp_events.h:1567
SDL_GamepadDeviceEvent GamepadDeviceEvent
Gamepad device event structure (event.gdevice.
Definition SDL3pp_events.h:841
SDL_ClipboardEvent ClipboardEvent
An event triggered when the clipboard contents have changed (event.clipboard.
Definition SDL3pp_events.h:973
SDL_GamepadSensorEvent GamepadSensorEvent
Gamepad sensor event structure (event.gsensor.
Definition SDL3pp_events.h:855
SDL_MouseDeviceEvent MouseDeviceEvent
Mouse device event structure (event.mdevice.
Definition SDL3pp_events.h:743
SDL_TouchFingerEvent TouchFingerEvent
Touch finger event structure (event.tfinger.
Definition SDL3pp_events.h:897
SDL_SensorEvent SensorEvent
Sensor event structure (event.sensor.
Definition SDL3pp_events.h:980
SDL_GamepadTouchpadEvent GamepadTouchpadEvent
Gamepad touchpad event structure (event.gtouchpad.
Definition SDL3pp_events.h:848
void FlushEvents(Uint32 minType=EVENT_FIRST, Uint32 maxType=EVENT_LAST)
Clear events of a range of types from the event queue.
Definition SDL3pp_events.h:1212
Uint32 RegisterEvents(int numevents)
Allocate a set of user-defined events, and return the beginning event number for that set of events.
Definition SDL3pp_events.h:1979
SDL_PenTouchEvent PenTouchEvent
Pressure-sensitive pen touched event structure (event.ptouch.
Definition SDL3pp_events.h:937
SDL_KeyboardDeviceEvent KeyboardDeviceEvent
Keyboard device event structure (event.kdevice.
Definition SDL3pp_events.h:689
SDL_AudioDeviceEvent AudioDeviceEvent
Audio device event structure (event.adevice.
Definition SDL3pp_events.h:862
SDL_DropEvent DropEvent
An event used to drop text or request a file open by the system (event.drop.
Definition SDL3pp_events.h:965
SDL_MouseButtonEvent MouseButtonEvent
Mouse button event structure (event.button.
Definition SDL3pp_events.h:757
constexpr EventAction GETEVENT
Retrieve/remove events from the front of the queue.
Definition SDL3pp_events.h:1060
SDL_JoyBatteryEvent JoyBatteryEvent
Joystick battery level change event structure (event.jbattery.
Definition SDL3pp_events.h:811
SDL_EventAction EventAction
The type of action to request from PeepEvents().
Definition SDL3pp_events.h:1045
SDL_DisplayEvent DisplayEvent
Display state change event data (event.display.
Definition SDL3pp_events.h:675
bool WaitEventTimeout(Event *event, Sint32 timeoutMS)
Wait until the specified timeout (in milliseconds) for the next available event.
Definition SDL3pp_events.h:1384
void SetEventEnabled(Uint32 type, bool enabled)
Set the state of processing events by type.
Definition SDL3pp_events.h:1946
SDL_Event Event
The structure for all events in SDL.
Definition SDL3pp_events.h:1010
SDL_EventType EventType
The types of events that can be delivered.
Definition SDL3pp_events.h:50
SDL_TextEditingEvent TextEditingEvent
Keyboard text editing event structure (event.edit.
Definition SDL3pp_events.h:716
SDL_UserEvent UserEvent
A user-defined event type (event.user.
Definition SDL3pp_events.h:1000
std::optional< Event > PollEvent()
Poll for currently pending events.
Definition SDL3pp_events.h:1301
Event WaitEvent()
Wait indefinitely for the next available event.
Definition SDL3pp_events.h:1349
SDL_TextEditingCandidatesEvent TextEditingCandidatesEvent
Keyboard IME candidates event structure (event.edit_candidates.
Definition SDL3pp_events.h:723
WindowRef GetWindowFromEvent(const Event &event)
Get window associated with an event.
Definition SDL3pp_events.h:1999
void PushEvent(Event *event)
Add an event to the event queue.
Definition SDL3pp_events.h:1511
void SetEventFilter(EventFilter filter, void *userdata)
Set up a filter to process all events before they are added to the internal event queue.
Definition SDL3pp_events.h:1642
SDL_PenAxisEvent PenAxisEvent
Pressure-sensitive pen pressure / angle event structure (event.paxis.
Definition SDL3pp_events.h:957
SDL_KeyboardEvent KeyboardEvent
Keyboard button event structure (event.key.
Definition SDL3pp_events.h:705
constexpr EventAction ADDEVENT
Add events to the back of the queue.
Definition SDL3pp_events.h:1050
bool HasEvent(Uint32 type)
Check for the existence of a certain event type in the event queue.
Definition SDL3pp_events.h:1134
SDL_MouseMotionEvent MouseMotionEvent
Mouse motion event structure (event.motion.
Definition SDL3pp_events.h:750
SDL_JoyHatEvent JoyHatEvent
Joystick hat position change event structure (event.jhat.
Definition SDL3pp_events.h:785
void AddEventWatch(EventFilter filter, void *userdata)
Add a callback to be triggered when an event is added to the event queue.
Definition SDL3pp_events.h:1792
void FilterEvents(EventFilter filter, void *userdata)
Run a specific filter function on the current event queue, removing any events for which the filter r...
Definition SDL3pp_events.h:1900
SDL_MouseWheelEvent MouseWheelEvent
Mouse wheel event structure (event.wheel.
Definition SDL3pp_events.h:764
SDL_CommonEvent CommonEvent
Fields shared by every event.
Definition SDL3pp_events.h:668
SDL_JoyButtonEvent JoyButtonEvent
Joystick button event structure (event.jbutton.
Definition SDL3pp_events.h:792
SDL_PenButtonEvent PenButtonEvent
Pressure-sensitive pen button event structure (event.pbutton.
Definition SDL3pp_events.h:947
SDL_TextInputEvent TextInputEvent
Keyboard text input event structure (event.text.
Definition SDL3pp_events.h:736
constexpr EventAction PEEKEVENT
Check but don't remove events from the queue front.
Definition SDL3pp_events.h:1055
SDL_QuitEvent QuitEvent
The "quit requested" event.
Definition SDL3pp_events.h:987
bool EventEnabled(Uint32 type)
Query the state of processing events by type.
Definition SDL3pp_events.h:1963
SDL_JoyDeviceEvent JoyDeviceEvent
Joystick device event structure (event.jdevice.
Definition SDL3pp_events.h:804
SDL_JoyBallEvent JoyBallEvent
Joystick trackball motion event structure (event.jball.
Definition SDL3pp_events.h:778
void PumpEvents()
Pump the event loop, gathering events from the input devices.
Definition SDL3pp_events.h:1032
SDL_PenMotionEvent PenMotionEvent
Pressure-sensitive pen motion event structure (event.pmotion.
Definition SDL3pp_events.h:927
EventFilterCB GetEventFilter()
Query the current event filter.
Definition SDL3pp_events.h:1739
std::function< bool(const Event &)> EventFilterCB
A std::function used for callbacks that watch the event queue.
Definition SDL3pp_events.h:1590
constexpr EventType EVENT_PEN_UP
Pressure-sensitive pen stopped touching drawing surface.
Definition SDL3pp_events.h:575
constexpr EventType EVENT_WINDOW_SAFE_AREA_CHANGED
The window safe area has been changed.
Definition SDL3pp_events.h:272
constexpr EventType EVENT_DROP_FILE
The system requests a file open.
Definition SDL3pp_events.h:514
constexpr EventType EVENT_PEN_MOTION
Pressure-sensitive pen is moving on the tablet.
Definition SDL3pp_events.h:590
constexpr EventType EVENT_DISPLAY_ORIENTATION
Display orientation has changed to data1.
Definition SDL3pp_events.h:126
constexpr EventType EVENT_JOYSTICK_BUTTON_UP
Joystick button released.
Definition SDL3pp_events.h:407
constexpr EventType EVENT_KEYBOARD_REMOVED
A keyboard has been removed.
Definition SDL3pp_events.h:346
constexpr EventType EVENT_DISPLAY_ADDED
Display has been added to the system.
Definition SDL3pp_events.h:131
constexpr EventType EVENT_AUDIO_DEVICE_ADDED
A new audio device is available.
Definition SDL3pp_events.h:539
constexpr EventType EVENT_WINDOW_MOUSE_ENTER
Window has gained mouse focus.
Definition SDL3pp_events.h:223
constexpr EventType EVENT_GAMEPAD_REMAPPED
The gamepad mapping was updated.
Definition SDL3pp_events.h:459
constexpr EventType EVENT_PRIVATE0
PRIVATE0.
Definition SDL3pp_events.h:634
constexpr EventType EVENT_RENDER_DEVICE_LOST
The device has been lost and can't be recovered.
Definition SDL3pp_events.h:632
constexpr EventType EVENT_WINDOW_OCCLUDED
The window has been occluded.
Definition SDL3pp_events.h:278
constexpr EventType EVENT_WINDOW_MOVED
Window has been moved to data1, data2.
Definition SDL3pp_events.h:186
constexpr EventType EVENT_JOYSTICK_HAT_MOTION
Joystick hat position change.
Definition SDL3pp_events.h:397
constexpr EventType EVENT_WINDOW_LEAVE_FULLSCREEN
The window has left fullscreen mode.
Definition SDL3pp_events.h:289
constexpr EventType EVENT_PRIVATE2
PRIVATE2.
Definition SDL3pp_events.h:638
constexpr EventType EVENT_DROP_BEGIN
A new set of drops is beginning (NULL filename)
Definition SDL3pp_events.h:524
constexpr EventType EVENT_CAMERA_DEVICE_APPROVED
A camera device has been approved for use by the user.
Definition SDL3pp_events.h:611
constexpr EventType EVENT_WILL_ENTER_BACKGROUND
The application is about to enter the background.
Definition SDL3pp_events.h:88
constexpr EventType EVENT_WINDOW_EXPOSED
Window has been exposed and should be redrawn, and can be redrawn directly from event watchers for th...
Definition SDL3pp_events.h:181
constexpr EventType EVENT_WINDOW_ICCPROF_CHANGED
The ICC profile of the window's display has changed.
Definition SDL3pp_events.h:254
constexpr EventType EVENT_GAMEPAD_REMOVED
A gamepad has been removed.
Definition SDL3pp_events.h:454
constexpr EventType EVENT_DISPLAY_CURRENT_MODE_CHANGED
Display has changed current mode.
Definition SDL3pp_events.h:152
constexpr EventType EVENT_DID_ENTER_FOREGROUND
The application is now interactive.
Definition SDL3pp_events.h:111
constexpr EventType EVENT_MOUSE_BUTTON_UP
Mouse button released.
Definition SDL3pp_events.h:367
constexpr EventType EVENT_KEYBOARD_ADDED
A new keyboard has been inserted into the system.
Definition SDL3pp_events.h:341
constexpr EventType EVENT_AUDIO_DEVICE_REMOVED
An audio device has been removed.
Definition SDL3pp_events.h:544
constexpr EventType EVENT_DISPLAY_CONTENT_SCALE_CHANGED
Display has changed content scale.
Definition SDL3pp_events.h:158
constexpr EventType EVENT_WINDOW_RESTORED
Window has been restored to normal size and position.
Definition SDL3pp_events.h:218
constexpr EventType EVENT_WINDOW_HIT_TEST
Window had a hit test that wasn't SDL_HITTEST_NORMAL.
Definition SDL3pp_events.h:249
constexpr EventType EVENT_JOYSTICK_BUTTON_DOWN
Joystick button pressed.
Definition SDL3pp_events.h:402
constexpr EventType EVENT_DISPLAY_MOVED
Display has changed position.
Definition SDL3pp_events.h:141
constexpr EventType EVENT_PEN_BUTTON_UP
Pressure-sensitive pen button released.
Definition SDL3pp_events.h:585
constexpr EventType EVENT_KEY_UP
Key released.
Definition SDL3pp_events.h:320
constexpr EventType EVENT_MOUSE_ADDED
A new mouse has been inserted into the system.
Definition SDL3pp_events.h:377
constexpr EventType EVENT_POLL_SENTINEL
Signals the end of an event poll cycle.
Definition SDL3pp_events.h:645
constexpr EventType EVENT_MOUSE_REMOVED
A mouse has been removed.
Definition SDL3pp_events.h:382
constexpr EventType EVENT_DROP_POSITION
Position while moving over the window.
Definition SDL3pp_events.h:534
constexpr EventType EVENT_JOYSTICK_BATTERY_UPDATED
Joystick battery level change.
Definition SDL3pp_events.h:422
constexpr EventType EVENT_TEXT_INPUT
Keyboard text input.
Definition SDL3pp_events.h:330
constexpr EventType EVENT_DISPLAY_LAST
DISPLAY_LAST.
Definition SDL3pp_events.h:164
constexpr EventType EVENT_WINDOW_RESIZED
Window has been resized to data1xdata2.
Definition SDL3pp_events.h:191
constexpr EventType EVENT_PEN_PROXIMITY_OUT
Pressure-sensitive pen has become unavailable.
Definition SDL3pp_events.h:565
constexpr EventType EVENT_WINDOW_PIXEL_SIZE_CHANGED
The pixel size of the window has changed to data1xdata2.
Definition SDL3pp_events.h:196
constexpr EventType EVENT_JOYSTICK_BALL_MOTION
Joystick trackball motion.
Definition SDL3pp_events.h:392
constexpr EventType EVENT_GAMEPAD_BUTTON_DOWN
Gamepad button pressed.
Definition SDL3pp_events.h:439
constexpr EventType EVENT_CAMERA_DEVICE_REMOVED
A camera device has been removed.
Definition SDL3pp_events.h:605
constexpr EventType EVENT_DISPLAY_FIRST
DISPLAY_FIRST.
Definition SDL3pp_events.h:161
constexpr EventType EVENT_WINDOW_FIRST
WINDOW_FIRST.
Definition SDL3pp_events.h:307
constexpr EventType EVENT_RENDER_DEVICE_RESET
The device has been reset and all textures need to be recreated.
Definition SDL3pp_events.h:627
constexpr EventType EVENT_PEN_DOWN
Pressure-sensitive pen touched drawing surface.
Definition SDL3pp_events.h:570
constexpr EventType EVENT_TEXT_EDITING
Keyboard text editing (composition)
Definition SDL3pp_events.h:325
constexpr EventType EVENT_WINDOW_CLOSE_REQUESTED
The window manager requests that the window be closed.
Definition SDL3pp_events.h:243
constexpr EventType EVENT_GAMEPAD_TOUCHPAD_UP
Gamepad touchpad finger was lifted.
Definition SDL3pp_events.h:476
constexpr EventType EVENT_DID_ENTER_BACKGROUND
The application did enter the background and may not get CPU for some time.
Definition SDL3pp_events.h:96
constexpr EventType EVENT_DROP_TEXT
text/plain drag-and-drop event
Definition SDL3pp_events.h:519
constexpr EventType EVENT_WINDOW_HDR_STATE_CHANGED
Window HDR properties have changed.
Definition SDL3pp_events.h:304
constexpr EventType EVENT_PEN_PROXIMITY_IN
Pressure-sensitive pen has become available.
Definition SDL3pp_events.h:560
constexpr EventType EVENT_WILL_ENTER_FOREGROUND
The application is about to enter the foreground.
Definition SDL3pp_events.h:103
constexpr EventType EVENT_SENSOR_UPDATE
A sensor was updated.
Definition SDL3pp_events.h:555
constexpr EventType EVENT_KEY_DOWN
Key pressed.
Definition SDL3pp_events.h:315
constexpr EventType EVENT_TEXT_EDITING_CANDIDATES
Keyboard text editing candidates.
Definition SDL3pp_events.h:351
constexpr EventType EVENT_GAMEPAD_TOUCHPAD_DOWN
Gamepad touchpad was touched.
Definition SDL3pp_events.h:464
constexpr EventType EVENT_WINDOW_MINIMIZED
Window has been minimized.
Definition SDL3pp_events.h:208
constexpr EventType EVENT_PRIVATE1
PRIVATE1.
Definition SDL3pp_events.h:636
constexpr EventType EVENT_LAST
This last event is only for bounding internal arrays.
Definition SDL3pp_events.h:656
constexpr EventType EVENT_FINGER_MOTION
FINGER_MOTION.
Definition SDL3pp_events.h:500
constexpr EventType EVENT_JOYSTICK_UPDATE_COMPLETE
Joystick update is complete.
Definition SDL3pp_events.h:428
constexpr EventType EVENT_FINGER_CANCELED
FINGER_CANCELED.
Definition SDL3pp_events.h:503
constexpr EventType EVENT_LOW_MEMORY
The application is low on memory, free memory if possible.
Definition SDL3pp_events.h:81
constexpr EventType EVENT_DISPLAY_REMOVED
Display has been removed from the system.
Definition SDL3pp_events.h:136
constexpr EventType EVENT_GAMEPAD_TOUCHPAD_MOTION
Gamepad touchpad finger was moved.
Definition SDL3pp_events.h:470
constexpr EventType EVENT_FINGER_UP
FINGER_UP.
Definition SDL3pp_events.h:498
constexpr EventType EVENT_JOYSTICK_AXIS_MOTION
Joystick axis motion.
Definition SDL3pp_events.h:387
constexpr EventType EVENT_WINDOW_DISPLAY_SCALE_CHANGED
Window display scale has been changed.
Definition SDL3pp_events.h:266
constexpr EventType EVENT_FINGER_DOWN
FINGER_DOWN.
Definition SDL3pp_events.h:496
constexpr EventType EVENT_DISPLAY_DESKTOP_MODE_CHANGED
Display has changed desktop mode.
Definition SDL3pp_events.h:146
constexpr EventType EVENT_WINDOW_DESTROYED
The window with the associated ID is being or has been destroyed.
Definition SDL3pp_events.h:299
constexpr EventType EVENT_PRIVATE3
PRIVATE3.
Definition SDL3pp_events.h:640
constexpr EventType EVENT_GAMEPAD_BUTTON_UP
Gamepad button released.
Definition SDL3pp_events.h:444
constexpr EventType EVENT_CAMERA_DEVICE_DENIED
A camera device has been denied for use by the user.
Definition SDL3pp_events.h:617
constexpr EventType EVENT_GAMEPAD_STEAM_HANDLE_UPDATED
Gamepad Steam handle has changed.
Definition SDL3pp_events.h:493
constexpr EventType EVENT_USER
Events SDL_EVENT_USER through SDL_EVENT_LAST are for your use, and should be allocated with SDL_Regis...
Definition SDL3pp_events.h:651
constexpr EventType EVENT_KEYMAP_CHANGED
Keymap changed due to a system event such as an input language or keyboard layout change.
Definition SDL3pp_events.h:336
constexpr EventType EVENT_MOUSE_BUTTON_DOWN
Mouse button pressed.
Definition SDL3pp_events.h:362
constexpr EventType EVENT_LOCALE_CHANGED
The user's locale preferences have changed.
Definition SDL3pp_events.h:116
constexpr EventType EVENT_PEN_AXIS
Pressure-sensitive pen angle/pressure/etc changed.
Definition SDL3pp_events.h:595
constexpr EventType EVENT_WINDOW_MOUSE_LEAVE
Window has lost mouse focus.
Definition SDL3pp_events.h:228
constexpr EventType EVENT_FIRST
Unused (do not remove)
Definition SDL3pp_events.h:62
constexpr EventType EVENT_JOYSTICK_REMOVED
An opened joystick has been removed.
Definition SDL3pp_events.h:417
constexpr EventType EVENT_GAMEPAD_UPDATE_COMPLETE
Gamepad update is complete.
Definition SDL3pp_events.h:487
constexpr EventType EVENT_CLIPBOARD_UPDATE
The clipboard or primary selection changed.
Definition SDL3pp_events.h:509
constexpr EventType EVENT_AUDIO_DEVICE_FORMAT_CHANGED
An audio device's format has been changed by the system.
Definition SDL3pp_events.h:549
constexpr EventType EVENT_MOUSE_WHEEL
Mouse wheel motion.
Definition SDL3pp_events.h:372
constexpr EventType EVENT_SYSTEM_THEME_CHANGED
The system theme changed.
Definition SDL3pp_events.h:121
constexpr EventType EVENT_JOYSTICK_ADDED
A new joystick has been inserted into the system.
Definition SDL3pp_events.h:412
constexpr EventType EVENT_TERMINATING
The application is being terminated by the OS.
Definition SDL3pp_events.h:74
constexpr EventType EVENT_ENUM_PADDING
ENUM_PADDING.
Definition SDL3pp_events.h:658
constexpr EventType EVENT_GAMEPAD_SENSOR_UPDATE
Gamepad sensor was updated.
Definition SDL3pp_events.h:481
constexpr EventType EVENT_WINDOW_SHOWN
Window has been shown.
Definition SDL3pp_events.h:170
constexpr EventType EVENT_WINDOW_MAXIMIZED
Window has been maximized.
Definition SDL3pp_events.h:213
constexpr EventType EVENT_GAMEPAD_ADDED
A new gamepad has been inserted into the system.
Definition SDL3pp_events.h:449
constexpr EventType EVENT_WINDOW_FOCUS_LOST
Window has lost keyboard focus.
Definition SDL3pp_events.h:238
constexpr EventType EVENT_MOUSE_MOTION
Mouse moved.
Definition SDL3pp_events.h:357
constexpr EventType EVENT_PEN_BUTTON_DOWN
Pressure-sensitive pen button pressed.
Definition SDL3pp_events.h:580
constexpr EventType EVENT_WINDOW_METAL_VIEW_RESIZED
The pixel size of a Metal view associated with the window has changed.
Definition SDL3pp_events.h:202
constexpr EventType EVENT_GAMEPAD_AXIS_MOTION
Gamepad axis motion.
Definition SDL3pp_events.h:434
constexpr EventType EVENT_RENDER_TARGETS_RESET
The render targets have been reset and their contents need to be updated.
Definition SDL3pp_events.h:622
constexpr EventType EVENT_WINDOW_FOCUS_GAINED
Window has gained keyboard focus.
Definition SDL3pp_events.h:233
constexpr EventType EVENT_WINDOW_ENTER_FULLSCREEN
The window has entered fullscreen mode.
Definition SDL3pp_events.h:283
constexpr EventType EVENT_QUIT
User-requested quit.
Definition SDL3pp_events.h:67
constexpr EventType EVENT_WINDOW_DISPLAY_CHANGED
Window has been moved to display data1.
Definition SDL3pp_events.h:260
constexpr EventType EVENT_WINDOW_HIDDEN
Window has been hidden.
Definition SDL3pp_events.h:175
constexpr EventType EVENT_CAMERA_DEVICE_ADDED
A new camera device is available.
Definition SDL3pp_events.h:600
constexpr EventType EVENT_WINDOW_LAST
WINDOW_LAST.
Definition SDL3pp_events.h:310
constexpr EventType EVENT_DROP_COMPLETE
Current set of drops is now complete (NULL filename)
Definition SDL3pp_events.h:529
the main namespace where all SDL3pp public functions and types live
Definition SDL3pp_assert.h:7
Definition SDL3pp_callbackWrapper.h:66
Handle returned by AddEventWatch(EventFilterCB)
Definition SDL3pp_events.h:1599
Stored Wrapper unique by type result callbacks.
Definition SDL3pp_callbackWrapper.h:242
Handle to a non owned window.
Definition SDL3pp_video.h:2778