SDL 3.0
SDL_TouchFingerEvent Struct Reference

#include <SDL_events.h>

Data Fields

SDL_EventType type
 
Uint32 reserved
 
Uint64 timestamp
 
SDL_TouchID touchID
 
SDL_FingerID fingerID
 
float x
 
float y
 
float dx
 
float dy
 
float pressure
 
SDL_WindowID windowID
 

Detailed Description

Touch finger event structure (event.tfinger.*)

Since
This struct is available since SDL 3.0.0.

Definition at line 651 of file SDL_events.h.

Field Documentation

◆ dx

float SDL_TouchFingerEvent::dx

Normalized in the range -1...1

Definition at line 660 of file SDL_events.h.

◆ dy

float SDL_TouchFingerEvent::dy

Normalized in the range -1...1

Definition at line 661 of file SDL_events.h.

◆ fingerID

SDL_FingerID SDL_TouchFingerEvent::fingerID

Definition at line 657 of file SDL_events.h.

◆ pressure

float SDL_TouchFingerEvent::pressure

Normalized in the range 0...1

Definition at line 662 of file SDL_events.h.

◆ reserved

Uint32 SDL_TouchFingerEvent::reserved

Definition at line 654 of file SDL_events.h.

◆ timestamp

Uint64 SDL_TouchFingerEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 655 of file SDL_events.h.

◆ touchID

SDL_TouchID SDL_TouchFingerEvent::touchID

The touch device id

Definition at line 656 of file SDL_events.h.

◆ type

SDL_EventType SDL_TouchFingerEvent::type

◆ windowID

SDL_WindowID SDL_TouchFingerEvent::windowID

The window underneath the finger, if any

Definition at line 663 of file SDL_events.h.

◆ x

float SDL_TouchFingerEvent::x

Normalized in the range 0...1

Definition at line 658 of file SDL_events.h.

◆ y

float SDL_TouchFingerEvent::y

Normalized in the range 0...1

Definition at line 659 of file SDL_events.h.


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