logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GamepadTouchpadEvent - Gamepad touchpad event structure (event.gtouchpad.*)

Availability

       This struct is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                    SDL_GamepadTouchpadEvent(3type)

Name

       SDL_GamepadTouchpadEvent - Gamepad touchpad event structure (event.gtouchpad.*)

Synopsis

#include<SDL3/SDL_events.h>typedefstructSDL_GamepadTouchpadEvent{SDL_EventTypetype;/**<SDL_EVENT_GAMEPAD_TOUCHPAD_DOWNorSDL_EVENT_GAMEPAD_TOUCHPAD_MOTIONorSDL_EVENT_GAMEPAD_TOUCHPAD_UP*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_JoystickIDwhich;/**<Thejoystickinstanceid*/Sint32touchpad;/**<Theindexofthetouchpad*/Sint32finger;/**<Theindexofthefingeronthetouchpad*/floatx;/**<Normalizedintherange0...1with0beingontheleft*/floaty;/**<Normalizedintherange0...1with0beingatthetop*/floatpressure;/**<Normalizedintherange0...1*/}SDL_GamepadTouchpadEvent;

See Also