TinyGPU
Loading...
Searching...
No Matches
Public Attributes | List of all members
GestureEvent Struct Reference

#include <GestureDetector.h>

Collaboration diagram for GestureEvent:
Collaboration graph
[legend]

Public Attributes

GestureType type = GestureType::kNone
 
GesturePhase phase = GesturePhase::kEnded
 
Point point
 current touch position
 
Point startPoint
 where the touch began
 
int16_t deltaX = 0
 cumulative movement since the touch began
 
int16_t deltaY = 0
 
int16_t stepDeltaX = 0
 movement since the previous kChanged event
 
int16_t stepDeltaY = 0
 
float scale = 1.0f
 pinch: current / initial two-finger distance
 
float rotationDegrees = 0.0f
 rotate: cumulative angle change
 
uint32_t durationMs = 0
 how long the touch has been held
 

Member Data Documentation

◆ deltaX

int16_t deltaX = 0

cumulative movement since the touch began

◆ deltaY

int16_t deltaY = 0

◆ durationMs

uint32_t durationMs = 0

how long the touch has been held

◆ phase

◆ point

Point point

current touch position

◆ rotationDegrees

float rotationDegrees = 0.0f

rotate: cumulative angle change

◆ scale

float scale = 1.0f

pinch: current / initial two-finger distance

◆ startPoint

Point startPoint

where the touch began

◆ stepDeltaX

int16_t stepDeltaX = 0

movement since the previous kChanged event

◆ stepDeltaY

int16_t stepDeltaY = 0

◆ type


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