Fixed confusing audio and touch events because of shared enumeration values.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 21 Mar 2015 08:01:43 +0100
changeset 941786483b23f44a
parent 9416 d5c12b28df2d
child 9418 eaafb42daa70
Fixed confusing audio and touch events because of shared enumeration values.
include/SDL_events.h
     1.1 --- a/include/SDL_events.h	Sat Mar 21 00:09:22 2015 -0400
     1.2 +++ b/include/SDL_events.h	Sat Mar 21 08:01:43 2015 +0100
     1.3 @@ -110,10 +110,6 @@
     1.4      SDL_JOYDEVICEADDED,         /**< A new joystick has been inserted into the system */
     1.5      SDL_JOYDEVICEREMOVED,       /**< An opened joystick has been removed */
     1.6  
     1.7 -    /* Audio hotplug events */
     1.8 -    SDL_AUDIODEVICEADDED = 0x700,  /**< A new audio device is available */
     1.9 -    SDL_AUDIODEVICEREMOVED,        /**< An audio device has been removed. */
    1.10 -
    1.11      /* Game controller events */
    1.12      SDL_CONTROLLERAXISMOTION  = 0x650, /**< Game controller axis motion */
    1.13      SDL_CONTROLLERBUTTONDOWN,          /**< Game controller button pressed */
    1.14 @@ -138,6 +134,10 @@
    1.15      /* Drag and drop events */
    1.16      SDL_DROPFILE        = 0x1000, /**< The system requests a file open */
    1.17  
    1.18 +    /* Audio hotplug events */
    1.19 +    SDL_AUDIODEVICEADDED = 0x1100, /**< A new audio device is available */
    1.20 +    SDL_AUDIODEVICEREMOVED,        /**< An audio device has been removed. */
    1.21 +
    1.22      /* Render events */
    1.23      SDL_RENDER_TARGETS_RESET = 0x2000, /**< The render targets have been reset and their contents need to be updated */
    1.24      SDL_RENDER_DEVICE_RESET, /**< The device has been reset and all textures need to be recreated */