SDL_GamepadTouchpadEvent

Gamepad touchpad event structure (event.gtouchpad.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

finger
Sint32 finger;

< The index of the finger on the touchpad

pressure
float pressure;

< Normalized in the range 0...1

reserved
Uint32 reserved;
Undocumented in source.
timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

touchpad
Sint32 touchpad;

< The index of the touchpad

type
SDL_EventType type;

< SDL_EVENT_GAMEPAD_TOUCHPAD_DOWN or SDL_EVENT_GAMEPAD_TOUCHPAD_MOTION or SDL_EVENT_GAMEPAD_TOUCHPAD_UP

which
SDL_JoystickID which;

< The joystick instance id

x
float x;

< Normalized in the range 0...1 with 0 being on the left

y
float y;

< Normalized in the range 0...1 with 0 being at the top

Meta