|
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 671 of file SDL_events.h.
| Uint32 SDL_GamepadDeviceEvent::reserved |
Definition at line 674 of file SDL_events.h.
| Uint64 SDL_GamepadDeviceEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 675 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 673 of file SDL_events.h.
| SDL_JoystickID SDL_GamepadDeviceEvent::which |
The joystick instance id
Definition at line 676 of file SDL_events.h.