Joystick device event structure (event.jdevice.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_JoyDeviceEvent
{/**< SDL_EVENT_JOYSTICK_ADDED or SDL_EVENT_JOYSTICK_REMOVED or SDL_EVENT_JOYSTICK_UPDATE_COMPLETE */
SDL_EventType type;
Uint32 reserved;/**< In nanoseconds, populated using SDL_GetTicksNS() */
Uint64 timestamp; /**< The joystick instance id */
SDL_JoystickID which; } SDL_JoyDeviceEvent;
SDL will send JOYSTICK_ADDED events for devices that are already plugged in during SDL_Init.
This struct is available since SDL 3.1.3.