SDL 3.0
|
#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 |
Touch finger event structure (event.tfinger.*)
Definition at line 651 of file SDL_events.h.
float SDL_TouchFingerEvent::dx |
Normalized in the range -1...1
Definition at line 660 of file SDL_events.h.
float SDL_TouchFingerEvent::dy |
Normalized in the range -1...1
Definition at line 661 of file SDL_events.h.
SDL_FingerID SDL_TouchFingerEvent::fingerID |
Definition at line 657 of file SDL_events.h.
float SDL_TouchFingerEvent::pressure |
Normalized in the range 0...1
Definition at line 662 of file SDL_events.h.
Uint32 SDL_TouchFingerEvent::reserved |
Definition at line 654 of file SDL_events.h.
Uint64 SDL_TouchFingerEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 655 of file SDL_events.h.
SDL_TouchID SDL_TouchFingerEvent::touchID |
The touch device id
Definition at line 656 of file SDL_events.h.
SDL_EventType SDL_TouchFingerEvent::type |
SDL_EVENT_FINGER_MOTION or SDL_EVENT_FINGER_DOWN or SDL_EVENT_FINGER_UP
Definition at line 653 of file SDL_events.h.
SDL_WindowID SDL_TouchFingerEvent::windowID |
The window underneath the finger, if any
Definition at line 663 of file SDL_events.h.
float SDL_TouchFingerEvent::x |
Normalized in the range 0...1
Definition at line 658 of file SDL_events.h.
float SDL_TouchFingerEvent::y |
Normalized in the range 0...1
Definition at line 659 of file SDL_events.h.