SDL 2.0
SDL_JoyDeviceEvent Struct Reference

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint32 timestamp
 
Sint32 which
 

Detailed Description

Joystick device event structure (event.jdevice.*)

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

See also
SDL_ControllerDeviceEvent

Definition at line 421 of file SDL_events.h.

Field Documentation

◆ timestamp

Uint32 SDL_JoyDeviceEvent::timestamp

In milliseconds, populated using SDL_GetTicks()

Definition at line 424 of file SDL_events.h.

◆ type

Uint32 SDL_JoyDeviceEvent::type

SDL_JOYDEVICEADDED or SDL_JOYDEVICEREMOVED

Definition at line 423 of file SDL_events.h.

◆ which

Sint32 SDL_JoyDeviceEvent::which

The joystick device index for the ADDED event, instance id for the REMOVED event

Definition at line 425 of file SDL_events.h.


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