SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
SDL_EventType | type |
Uint32 | reserved |
Uint64 | timestamp |
SDL_JoystickID | which |
Gamepad device event structure (event.gdevice.*)
Joysticks that are supported gamepads receive both an SDL_JoyDeviceEvent and an SDL_GamepadDeviceEvent.
SDL will send GAMEPAD_ADDED events for joysticks that are already plugged in during SDL_Init() and are recognized as gamepads. It will also send events for joysticks that get gamepad mappings at runtime.
Definition at line 662 of file SDL_events.h.
Uint32 SDL_GamepadDeviceEvent::reserved |
Definition at line 665 of file SDL_events.h.
Uint64 SDL_GamepadDeviceEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 666 of file SDL_events.h.
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 664 of file SDL_events.h.
SDL_JoystickID SDL_GamepadDeviceEvent::which |
The joystick instance id
Definition at line 667 of file SDL_events.h.