SDL_events.h

Estructura SDL_ControllerDeviceEvent

Estructura que contiene información de eventos del dispositivo controlador.

typedef struct SDL_ControllerDeviceEvent
{
    Uint32 type;        /**< ::SDL_CONTROLLERDEVICEADDED, ::SDL_CONTROLLERDEVICEREMOVED, or ::SDL_CONTROLLERDEVICEREMAPPED */
    Uint32 timestamp;   /**< In milliseconds, populated using SDL_GetTicks() */
    Sint32 which;       /**< The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event */
} SDL_ControllerDeviceEvent;

Miembros

type
SDL_CONTROLLERDEVICEADDED, SDL_CONTROLLERDEVICEREMOVED o SDL_CONTROLLERDEVICEREMAPPED
timestamp
Marca de tiempo en milisegundos.
which
El id de instancia del joystick.