SDL 3.0
|
Touch finger event structure (event.tfinger.*) More...
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint64 | timestamp |
SDL_TouchID | touchId |
SDL_FingerID | fingerId |
float | x |
float | y |
float | dx |
float | dy |
float | pressure |
SDL_WindowID | windowID |
Touch finger event structure (event.tfinger.*)
Definition at line 508 of file SDL_events.h.
float SDL_TouchFingerEvent::dx |
Normalized in the range -1...1
Definition at line 516 of file SDL_events.h.
float SDL_TouchFingerEvent::dy |
Normalized in the range -1...1
Definition at line 517 of file SDL_events.h.
SDL_FingerID SDL_TouchFingerEvent::fingerId |
Definition at line 513 of file SDL_events.h.
float SDL_TouchFingerEvent::pressure |
Normalized in the range 0...1
Definition at line 518 of file SDL_events.h.
Uint64 SDL_TouchFingerEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 511 of file SDL_events.h.
SDL_TouchID SDL_TouchFingerEvent::touchId |
The touch device id
Definition at line 512 of file SDL_events.h.
Uint32 SDL_TouchFingerEvent::type |
SDL_EVENT_FINGER_MOTION or SDL_EVENT_FINGER_DOWN or SDL_EVENT_FINGER_UP
Definition at line 510 of file SDL_events.h.
SDL_WindowID SDL_TouchFingerEvent::windowID |
The window underneath the finger, if any
Definition at line 519 of file SDL_events.h.
float SDL_TouchFingerEvent::x |
Normalized in the range 0...1
Definition at line 514 of file SDL_events.h.
float SDL_TouchFingerEvent::y |
Normalized in the range 0...1
Definition at line 515 of file SDL_events.h.