My Project
Public Attributes | List of all members
SDL_TouchFingerEvent Struct Reference

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

#include <SDL_events.h>

Public Attributes

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

Detailed Description

Touch finger event structure (event.tfinger.*)

Member Data Documentation

◆ dx

float SDL_TouchFingerEvent::dx

Normalized in the range -1...1

◆ dy

float SDL_TouchFingerEvent::dy

Normalized in the range -1...1

◆ pressure

float SDL_TouchFingerEvent::pressure

Normalized in the range 0...1

◆ timestamp

Uint32 SDL_TouchFingerEvent::timestamp

In milliseconds, populated using SDL_GetTicks()

◆ touchId

SDL_TouchID SDL_TouchFingerEvent::touchId

The touch device id

◆ type

Uint32 SDL_TouchFingerEvent::type

::SDL_FINGERMOTION or ::SDL_FINGERDOWN or ::SDL_FINGERUP

◆ x

float SDL_TouchFingerEvent::x

Normalized in the range 0...1

◆ y

float SDL_TouchFingerEvent::y

Normalized in the range 0...1


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