SDL_JoyDeviceEvent - Joystick device event structure (event.jdevice.*)
Contents
Availability
This struct is available since SDL 3.2.0.
Description
SDL will send JOYSTICK_ADDED events for devices that are already plugged in during SDL_Init.
Name
SDL_JoyDeviceEvent - Joystick device event structure (event.jdevice.*)
See Also
SDL_GamepadDeviceEvent(3type) Simple Directmedia Layer SDL 3.2.20 SDL_JoyDeviceEvent(3type)
Synopsis
#include<SDL3/SDL_events.h>typedefstructSDL_JoyDeviceEvent{SDL_EventTypetype;/**<SDL_EVENT_JOYSTICK_ADDEDorSDL_EVENT_JOYSTICK_REMOVEDorSDL_EVENT_JOYSTICK_UPDATE_COMPLETE*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_JoystickIDwhich;/**<Thejoystickinstanceid*/}SDL_JoyDeviceEvent;