|
SDL 2.0
|
#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 |
Touch finger event structure (event.tfinger.*)
Definition at line 533 of file SDL_events.h.
| float SDL_TouchFingerEvent::dx |
Normalized in the range -1...1
Definition at line 541 of file SDL_events.h.
| float SDL_TouchFingerEvent::dy |
Normalized in the range -1...1
Definition at line 542 of file SDL_events.h.
| SDL_FingerID SDL_TouchFingerEvent::fingerId |
Definition at line 538 of file SDL_events.h.
| float SDL_TouchFingerEvent::pressure |
Normalized in the range 0...1
Definition at line 543 of file SDL_events.h.
| Uint32 SDL_TouchFingerEvent::timestamp |
In milliseconds, populated using SDL_GetTicks()
Definition at line 536 of file SDL_events.h.
| SDL_TouchID SDL_TouchFingerEvent::touchId |
The touch device id
Definition at line 537 of file SDL_events.h.
| Uint32 SDL_TouchFingerEvent::type |
SDL_FINGERMOTION or SDL_FINGERDOWN or SDL_FINGERUP
Definition at line 535 of file SDL_events.h.
| Uint32 SDL_TouchFingerEvent::windowID |
The window underneath the finger, if any
Definition at line 544 of file SDL_events.h.
| float SDL_TouchFingerEvent::x |
Normalized in the range 0...1
Definition at line 539 of file SDL_events.h.
| float SDL_TouchFingerEvent::y |
Normalized in the range 0...1
Definition at line 540 of file SDL_events.h.