SDL_JoyDeviceEvent

Joystick device event structure (event.jdevice.*)

SDL will send JOYSTICK_ADDED events for devices that are already plugged in during SDL_Init.

\since This struct is available since SDL 3.2.0.

\sa SDL_GamepadDeviceEvent

extern (C) nothrow @nogc
struct SDL_JoyDeviceEvent {}

Members

Variables

reserved
Uint32 reserved;
Undocumented in source.
timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_JOYSTICK_ADDED or SDL_EVENT_JOYSTICK_REMOVED or SDL_EVENT_JOYSTICK_UPDATE_COMPLETE

which
SDL_JoystickID which;

< The joystick instance id

Meta