include/SDL_events.h
changeset 6974 11a03a79dfe8
parent 6972 3457cb05b7fb
child 7082 e9d6004d2978
     1.1 --- a/include/SDL_events.h	Wed Mar 06 11:59:19 2013 -0800
     1.2 +++ b/include/SDL_events.h	Wed Mar 06 11:59:21 2013 -0800
     1.3 @@ -244,7 +244,7 @@
     1.4  {
     1.5      Uint32 type;        /**< ::SDL_JOYAXISMOTION */
     1.6      Uint32 timestamp;
     1.7 -    Uint32 which;       /**< The joystick instance id */
     1.8 +    SDL_JoystickID which; /**< The joystick instance id */
     1.9      Uint8 axis;         /**< The joystick axis index */
    1.10      Uint8 padding1;
    1.11      Uint8 padding2;
    1.12 @@ -259,8 +259,8 @@
    1.13  typedef struct SDL_JoyBallEvent
    1.14  {
    1.15      Uint32 type;        /**< ::SDL_JOYBALLMOTION */
    1.16 -    Uint32 timestamp;
    1.17 -    Uint32 which;       /**< The joystick instance id */
    1.18 +	Uint32 timestamp;
    1.19 +    SDL_JoystickID which; /**< The joystick instance id */
    1.20      Uint8 ball;         /**< The joystick trackball index */
    1.21      Uint8 padding1;
    1.22      Uint8 padding2;
    1.23 @@ -275,8 +275,8 @@
    1.24  typedef struct SDL_JoyHatEvent
    1.25  {
    1.26      Uint32 type;        /**< ::SDL_JOYHATMOTION */
    1.27 -    Uint32 timestamp;
    1.28 -    Uint32 which;       /**< The joystick instance id */
    1.29 +	Uint32 timestamp;
    1.30 +    SDL_JoystickID which; /**< The joystick instance id */
    1.31      Uint8 hat;          /**< The joystick hat index */
    1.32      Uint8 value;        /**< The hat position value.
    1.33                           *   \sa ::SDL_HAT_LEFTUP ::SDL_HAT_UP ::SDL_HAT_RIGHTUP
    1.34 @@ -295,8 +295,8 @@
    1.35  typedef struct SDL_JoyButtonEvent
    1.36  {
    1.37      Uint32 type;        /**< ::SDL_JOYBUTTONDOWN or ::SDL_JOYBUTTONUP */
    1.38 -    Uint32 timestamp;
    1.39 -    Uint32 which;       /**< The joystick instance id */
    1.40 +	Uint32 timestamp;
    1.41 +    SDL_JoystickID which; /**< The joystick instance id */
    1.42      Uint8 button;       /**< The joystick button index */
    1.43      Uint8 state;        /**< ::SDL_PRESSED or ::SDL_RELEASED */
    1.44      Uint8 padding1;
    1.45 @@ -310,7 +310,7 @@
    1.46  {
    1.47  	Uint32 type;        /**< ::SDL_JOYDEVICEADDED or ::SDL_JOYDEVICEREMOVED */
    1.48  	Uint32 timestamp;
    1.49 -	Uint32 which;       /**< The joystick device index for the ADDED event, instance id for the REMOVED event */
    1.50 +	Sint32 which;       /**< The joystick device index for the ADDED event, instance id for the REMOVED event */
    1.51  } SDL_JoyDeviceEvent;
    1.52  
    1.53  
    1.54 @@ -320,8 +320,8 @@
    1.55  typedef struct SDL_ControllerAxisEvent
    1.56  {
    1.57      Uint32 type;        /**< ::SDL_CONTROLLERAXISMOTION */
    1.58 -    Uint32 timestamp;
    1.59 -    Uint32 which;       /**< The joystick instance id */
    1.60 +	Uint32 timestamp;
    1.61 +    SDL_JoystickID which; /**< The joystick instance id */
    1.62      Uint8 axis;         /**< The controller axis (SDL_GameControllerAxis) */
    1.63      Uint8 padding1;
    1.64      Uint8 padding2;
    1.65 @@ -337,8 +337,8 @@
    1.66  typedef struct SDL_ControllerButtonEvent
    1.67  {
    1.68      Uint32 type;        /**< ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP */
    1.69 -    Uint32 timestamp;
    1.70 -    Uint32 which;       /**< The joystick instance id */
    1.71 +	Uint32 timestamp;
    1.72 +    SDL_JoystickID which; /**< The joystick instance id */
    1.73      Uint8 button;       /**< The controller button (SDL_GameControllerButton) */
    1.74      Uint8 state;        /**< ::SDL_PRESSED or ::SDL_RELEASED */
    1.75      Uint8 padding1;
    1.76 @@ -353,7 +353,7 @@
    1.77  {
    1.78  	Uint32 type;        /**< ::SDL_CONTROLLERDEVICEADDED, ::SDL_CONTROLLERDEVICEREMOVED, or ::SDL_CONTROLLERDEVICEREMAPPED */
    1.79  	Uint32 timestamp;
    1.80 -	Uint32 which;       /**< The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event */
    1.81 +	Sint32 which;       /**< The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event */
    1.82  } SDL_ControllerDeviceEvent;
    1.83  
    1.84