My Project
Loading...
Searching...
No Matches
SDL_ControllerTouchpadEvent Struct Reference

Game controller touchpad event structure (event.ctouchpad.*) More...

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint32 timestamp
 
SDL_JoystickID which
 
Sint32 touchpad
 
Sint32 finger
 
float x
 
float y
 
float pressure
 

Detailed Description

Game controller touchpad event structure (event.ctouchpad.*)

Field Documentation

◆ finger

Sint32 finger

The index of the finger on the touchpad

◆ pressure

float pressure

Normalized in the range 0...1

◆ timestamp

Uint32 timestamp

In milliseconds, populated using SDL_GetTicks()

◆ touchpad

Sint32 touchpad

The index of the touchpad

◆ type

◆ 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


The documentation for this struct was generated from the following file: