SDL 3.0
SDL_GamepadDeviceEvent Struct Reference

#include <SDL_events.h>

Data Fields

SDL_EventType type
 
Uint32 reserved
 
Uint64 timestamp
 
SDL_JoystickID which
 

Detailed Description

Gamepad device event structure (event.gdevice.*)

Since
This struct is available since SDL 3.0.0.

Definition at line 626 of file SDL_events.h.

Field Documentation

◆ reserved

Uint32 SDL_GamepadDeviceEvent::reserved

Definition at line 629 of file SDL_events.h.

◆ timestamp

Uint64 SDL_GamepadDeviceEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 630 of file SDL_events.h.

◆ type

SDL_EventType SDL_GamepadDeviceEvent::type

SDL_EVENT_GAMEPAD_ADDED, SDL_EVENT_GAMEPAD_REMOVED, or SDL_EVENT_GAMEPAD_REMAPPED, SDL_EVENT_GAMEPAD_UPDATE_COMPLETE or SDL_EVENT_GAMEPAD_STEAM_HANDLE_UPDATED

Definition at line 628 of file SDL_events.h.

◆ which

SDL_JoystickID SDL_GamepadDeviceEvent::which

The joystick instance id

Definition at line 631 of file SDL_events.h.


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