From 716ef0d5f21a24d0f7f09e9dd524df30094ed23a Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 21 Mar 2015 08:01:43 +0100 Subject: [PATCH] Fixed confusing audio and touch events because of shared enumeration values. --- include/SDL_events.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/SDL_events.h b/include/SDL_events.h index 521b65be1..65818af95 100644 --- a/include/SDL_events.h +++ b/include/SDL_events.h @@ -110,10 +110,6 @@ typedef enum SDL_JOYDEVICEADDED, /**< A new joystick has been inserted into the system */ SDL_JOYDEVICEREMOVED, /**< An opened joystick has been removed */ - /* Audio hotplug events */ - SDL_AUDIODEVICEADDED = 0x700, /**< A new audio device is available */ - SDL_AUDIODEVICEREMOVED, /**< An audio device has been removed. */ - /* Game controller events */ SDL_CONTROLLERAXISMOTION = 0x650, /**< Game controller axis motion */ SDL_CONTROLLERBUTTONDOWN, /**< Game controller button pressed */ @@ -138,6 +134,10 @@ typedef enum /* Drag and drop events */ SDL_DROPFILE = 0x1000, /**< The system requests a file open */ + /* Audio hotplug events */ + SDL_AUDIODEVICEADDED = 0x1100, /**< A new audio device is available */ + SDL_AUDIODEVICEREMOVED, /**< An audio device has been removed. */ + /* Render events */ SDL_RENDER_TARGETS_RESET = 0x2000, /**< The render targets have been reset and their contents need to be updated */ SDL_RENDER_DEVICE_RESET, /**< The device has been reset and all textures need to be recreated */