SDL 3.0
SDL_JoyDeviceEvent Struct Reference

#include <SDL_events.h>

Data Fields

SDL_EventType type
 
Uint32 reserved
 
Uint64 timestamp
 
SDL_JoystickID which
 

Detailed Description

Joystick device event structure (event.jdevice.*)

Since
This struct is available since SDL 3.0.0.

Definition at line 560 of file SDL_events.h.

Field Documentation

◆ reserved

Uint32 SDL_JoyDeviceEvent::reserved

Definition at line 563 of file SDL_events.h.

◆ timestamp

Uint64 SDL_JoyDeviceEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 564 of file SDL_events.h.

◆ type

SDL_EventType SDL_JoyDeviceEvent::type

SDL_EVENT_JOYSTICK_ADDED or SDL_EVENT_JOYSTICK_REMOVED or SDL_EVENT_JOYSTICK_UPDATE_COMPLETE

Definition at line 562 of file SDL_events.h.

◆ which

SDL_JoystickID SDL_JoyDeviceEvent::which

The joystick instance id

Definition at line 565 of file SDL_events.h.


The documentation for this struct was generated from the following file: