include/SDL_events.h
changeset 6917 47dc155b774d
parent 6885 700f1b25f77f
child 6949 4de584a3a027
equal deleted inserted replaced
6916:92e978d6dafa 6917:47dc155b774d
   312 typedef struct SDL_ControllerAxisEvent
   312 typedef struct SDL_ControllerAxisEvent
   313 {
   313 {
   314     Uint32 type;        /**< ::SDL_CONTROLLERAXISMOTION */
   314     Uint32 type;        /**< ::SDL_CONTROLLERAXISMOTION */
   315     Uint32 timestamp;
   315     Uint32 timestamp;
   316     Uint8 which;        /**< The joystick instance id */
   316     Uint8 which;        /**< The joystick instance id */
   317     SDL_CONTROLLER_AXIS axis;         /**< The joystick axis index */
   317     SDL_GameControllerAxis axis;         /**< The joystick axis index */
   318     int value;          /**< The axis value (range: -32768 to 32767) */
   318     int value;          /**< The axis value (range: -32768 to 32767) */
   319 } SDL_ControllerAxisEvent;
   319 } SDL_ControllerAxisEvent;
   320 
   320 
   321 
   321 
   322 /**
   322 /**
   325 typedef struct SDL_ControllerButtonEvent
   325 typedef struct SDL_ControllerButtonEvent
   326 {
   326 {
   327     Uint32 type;        /**< ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP */
   327     Uint32 type;        /**< ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP */
   328     Uint32 timestamp;
   328     Uint32 timestamp;
   329     Uint8 which;        /**< The joystick instance id */
   329     Uint8 which;        /**< The joystick instance id */
   330     SDL_CONTROLLER_BUTTON button;       /**< The joystick button index */
   330     SDL_GameControllerButton button;       /**< The joystick button index */
   331     Uint8 state;        /**< ::SDL_PRESSED or ::SDL_RELEASED */
   331     Uint8 state;        /**< ::SDL_PRESSED or ::SDL_RELEASED */
   332 } SDL_ControllerButtonEvent;
   332 } SDL_ControllerButtonEvent;
   333 
   333 
   334 
   334 
   335 /**
   335 /**