@@ -183,6 +183,8 @@ typedef enum SDL_EventType
183
183
SDL_EVENT_MOUSE_WHEEL , /**< Mouse wheel motion */
184
184
SDL_EVENT_MOUSE_ADDED , /**< A new mouse has been inserted into the system */
185
185
SDL_EVENT_MOUSE_REMOVED , /**< A mouse has been removed */
186
+ SDL_EVENT_MOUSE_FIRST = SDL_EVENT_MOUSE_MOTION ,
187
+ SDL_EVENT_MOUSE_LAST = SDL_EVENT_MOUSE_REMOVED ,
186
188
187
189
/* Joystick events */
188
190
SDL_EVENT_JOYSTICK_AXIS_MOTION = 0x600 , /**< Joystick axis motion */
@@ -194,6 +196,8 @@ typedef enum SDL_EventType
194
196
SDL_EVENT_JOYSTICK_REMOVED , /**< An opened joystick has been removed */
195
197
SDL_EVENT_JOYSTICK_BATTERY_UPDATED , /**< Joystick battery level change */
196
198
SDL_EVENT_JOYSTICK_UPDATE_COMPLETE , /**< Joystick update is complete */
199
+ SDL_EVENT_JOYSTICK_FIRST = SDL_EVENT_JOYSTICK_AXIS_MOTION ,
200
+ SDL_EVENT_JOYSTICK_LAST = SDL_EVENT_JOYSTICK_UPDATE_COMPLETE ,
197
201
198
202
/* Gamepad events */
199
203
SDL_EVENT_GAMEPAD_AXIS_MOTION = 0x650 , /**< Gamepad axis motion */
@@ -208,12 +212,16 @@ typedef enum SDL_EventType
208
212
SDL_EVENT_GAMEPAD_SENSOR_UPDATE , /**< Gamepad sensor was updated */
209
213
SDL_EVENT_GAMEPAD_UPDATE_COMPLETE , /**< Gamepad update is complete */
210
214
SDL_EVENT_GAMEPAD_STEAM_HANDLE_UPDATED , /**< Gamepad Steam handle has changed */
215
+ SDL_EVENT_GAMEPAD_FIRST = SDL_EVENT_GAMEPAD_AXIS_MOTION ,
216
+ SDL_EVENT_GAMEPAD_LAST = SDL_EVENT_GAMEPAD_STEAM_HANDLE_UPDATED ,
211
217
212
218
/* Touch events */
213
219
SDL_EVENT_FINGER_DOWN = 0x700 ,
214
220
SDL_EVENT_FINGER_UP ,
215
221
SDL_EVENT_FINGER_MOTION ,
216
222
SDL_EVENT_FINGER_CANCELED ,
223
+ SDL_EVENT_FINGER_FIRST = SDL_EVENT_FINGER_DOWN ,
224
+ SDL_EVENT_FINGER_LAST = SDL_EVENT_FINGER_CANCELLED ,
217
225
218
226
/* 0x800, 0x801, and 0x802 were the Gesture events from SDL2. Do not reuse these values! sdl2-compat needs them! */
219
227
@@ -226,11 +234,15 @@ typedef enum SDL_EventType
226
234
SDL_EVENT_DROP_BEGIN , /**< A new set of drops is beginning (NULL filename) */
227
235
SDL_EVENT_DROP_COMPLETE , /**< Current set of drops is now complete (NULL filename) */
228
236
SDL_EVENT_DROP_POSITION , /**< Position while moving over the window */
237
+ SDL_EVENT_DROP_FIRST = SDL_EVENT_DROP_FILE ,
238
+ SDL_EVENT_DROP_LAST = SDL_EVENT_DROP_POSITION ,
229
239
230
240
/* Audio hotplug events */
231
241
SDL_EVENT_AUDIO_DEVICE_ADDED = 0x1100 , /**< A new audio device is available */
232
242
SDL_EVENT_AUDIO_DEVICE_REMOVED , /**< An audio device has been removed. */
233
243
SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED , /**< An audio device's format has been changed by the system. */
244
+ SDL_EVENT_AUDIO_DEVICE_FIRST = SDL_EVENT_AUDIO_DEVICE_ADDED ,
245
+ SDL_EVENT_AUDIO_DEVICE_LAST = SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED ,
234
246
235
247
/* Sensor events */
236
248
SDL_EVENT_SENSOR_UPDATE = 0x1200 , /**< A sensor was updated */
@@ -244,17 +256,24 @@ typedef enum SDL_EventType
244
256
SDL_EVENT_PEN_BUTTON_UP , /**< Pressure-sensitive pen button released */
245
257
SDL_EVENT_PEN_MOTION , /**< Pressure-sensitive pen is moving on the tablet */
246
258
SDL_EVENT_PEN_AXIS , /**< Pressure-sensitive pen angle/pressure/etc changed */
259
+ SDL_EVENT_PEN_FIRST = SDL_EVENT_PEN_PROXIMITY_IN ,
260
+ SDL_EVENT_PEN_LAST = SDL_EVENT_PEN_AXIS ,
247
261
248
262
/* Camera hotplug events */
249
263
SDL_EVENT_CAMERA_DEVICE_ADDED = 0x1400 , /**< A new camera device is available */
250
264
SDL_EVENT_CAMERA_DEVICE_REMOVED , /**< A camera device has been removed. */
251
265
SDL_EVENT_CAMERA_DEVICE_APPROVED , /**< A camera device has been approved for use by the user. */
252
266
SDL_EVENT_CAMERA_DEVICE_DENIED , /**< A camera device has been denied for use by the user. */
267
+ SDL_EVENT_CAMERA_FIRST = SDL_EVENT_CAMERA_DEVICE_ADDED ,
268
+ SDL_EVENT_CAMERA_DEVICE_LAST = SDL_EVENT_CAMERA_DEVICE_DENIED ,
253
269
254
270
/* Render events */
255
271
SDL_EVENT_RENDER_TARGETS_RESET = 0x2000 , /**< The render targets have been reset and their contents need to be updated */
256
272
SDL_EVENT_RENDER_DEVICE_RESET , /**< The device has been reset and all textures need to be recreated */
257
273
SDL_EVENT_RENDER_DEVICE_LOST , /**< The device has been lost and can't be recovered. */
274
+ SDL_EVENT_RENDER_DEVICE_FIRST = SDL_EVENT_RENDER_TARGETS_RESET ,
275
+ SDL_EVENT_RENDER_DEVICE_LAST = SDL_EVENT_RENDER_DEVICE_LOST ,
276
+
258
277
259
278
/* Reserved events for private platforms */
260
279
SDL_EVENT_PRIVATE0 = 0x4000 ,
0 commit comments