THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
Joystick device event structure (event.jdevice.*)
Defined in [SDL_events.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_events.h), but apps should _only_ `#include "SDL.h"`!
typedef struct SDL_JoyDeviceEvent
{/**< ::SDL_JOYDEVICEADDED or ::SDL_JOYDEVICEREMOVED */
Uint32 type; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 timestamp; /**< The joystick device index for the ADDED event, instance id for the REMOVED event */
Sint32 which; } SDL_JoyDeviceEvent;
Uint32 |
type |
SDL_JOYDEVICEADDED or SDL_JOYDEVICEREMOVED |
Uint32 |
timestamp |
the timestamp of the event |
Sint32 |
which |
the joystick device index for the SDL_JOYDEVICEADDED event or the instance id for the SDL_JOYDEVICEREMOVED event |
CategoryAPI, CategoryAPIStruct, CategoryStruct, CategoryEvents, CategoryDraft