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

Touch finger event structure (event.tfinger.*) More...

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint32 timestamp
 
SDL_TouchID touchId
 
SDL_FingerID fingerId
 
float x
 
float y
 
float dx
 
float dy
 
float pressure
 
Uint32 windowID
 

Detailed Description

Touch finger event structure (event.tfinger.*)

Field Documentation

◆ dx

float dx

Normalized in the range -1...1

◆ dy

float dy

Normalized in the range -1...1

◆ pressure

float pressure

Normalized in the range 0...1

◆ timestamp

Uint32 timestamp

In milliseconds, populated using SDL_GetTicks()

◆ touchId

SDL_TouchID touchId

The touch device id

◆ type

Uint32 type

SDL_FINGERMOTION or SDL_FINGERDOWN or SDL_FINGERUP

◆ windowID

Uint32 windowID

The window underneath the finger, if any

◆ x

float x

Normalized in the range 0...1

◆ y

float y

Normalized in the range 0...1


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