Gamepad touchpad event structure (event.gtouchpad.*)
Defined in <SDL3/SDL_events.h>
typedef struct SDL_GamepadTouchpadEvent
{/**< SDL_EVENT_GAMEPAD_TOUCHPAD_DOWN or SDL_EVENT_GAMEPAD_TOUCHPAD_MOTION or SDL_EVENT_GAMEPAD_TOUCHPAD_UP */
SDL_EventType type;
Uint32 reserved;/**< In nanoseconds, populated using SDL_GetTicksNS() */
Uint64 timestamp; /**< The joystick instance id */
SDL_JoystickID which; /**< The index of the touchpad */
Sint32 touchpad; /**< The index of the finger on the touchpad */
Sint32 finger; float x; /**< Normalized in the range 0...1 with 0 being on the left */
float y; /**< Normalized in the range 0...1 with 0 being at the top */
float pressure; /**< Normalized in the range 0...1 */
} SDL_GamepadTouchpadEvent;
This struct is available since SDL 3.1.3.