SDL_events.h
Estructura SDL_JoyDeviceEvent
typedef struct SDL_JoyDeviceEvent { Uint32 type; /**< ::SDL_JOYDEVICEADDED or ::SDL_JOYDEVICEREMOVED */ Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */ Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED event */ } SDL_JoyDeviceEvent;
Miembros
- type
- SDL_JOYDEVICEADDED o SDL_JOYDEVICEREMOVED
- timestamp
- Marca de tiempo en milisegundos.
- which
- El id de instancia del joystick que notificó el evento.
Observaciones
Se accedería a él a través del campo jdevice del evento.