SDL 3.0
|
Gamepad touchpad event structure (event.ctouchpad.*) More...
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint64 | timestamp |
SDL_JoystickID | which |
Sint32 | touchpad |
Sint32 | finger |
float | x |
float | y |
float | pressure |
Gamepad touchpad event structure (event.ctouchpad.*)
Definition at line 452 of file SDL_events.h.
Sint32 SDL_GamepadTouchpadEvent::finger |
The index of the finger on the touchpad
Definition at line 458 of file SDL_events.h.
float SDL_GamepadTouchpadEvent::pressure |
Normalized in the range 0...1
Definition at line 461 of file SDL_events.h.
Uint64 SDL_GamepadTouchpadEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 455 of file SDL_events.h.
Sint32 SDL_GamepadTouchpadEvent::touchpad |
The index of the touchpad
Definition at line 457 of file SDL_events.h.
Uint32 SDL_GamepadTouchpadEvent::type |
SDL_EVENT_GAMEPAD_TOUCHPAD_DOWN or SDL_EVENT_GAMEPAD_TOUCHPAD_MOTION or SDL_EVENT_GAMEPAD_TOUCHPAD_UP
Definition at line 454 of file SDL_events.h.
SDL_JoystickID SDL_GamepadTouchpadEvent::which |
The joystick instance id
Definition at line 456 of file SDL_events.h.
float SDL_GamepadTouchpadEvent::x |
Normalized in the range 0...1 with 0 being on the left
Definition at line 459 of file SDL_events.h.
float SDL_GamepadTouchpadEvent::y |
Normalized in the range 0...1 with 0 being at the top
Definition at line 460 of file SDL_events.h.