#include <CUGestureInput.h>
This simple class is a struct to hold custom gesture event information.
cugl::GestureEvent::GestureEvent |
( |
| ) |
|
|
inline |
Constructs a new gesture event with the default values
cugl::GestureEvent::GestureEvent |
( |
const std::string & |
name, |
|
|
float |
delta, |
|
|
int |
down, |
|
|
const Timestamp & |
stamp |
|
) |
| |
|
inline |
Constructs a new gesture event with the given values
- Parameters
-
name | The identifying gesture key |
down | The number of fingers in the gesture |
delta | The delta between the template and the actual performed gesture |
stamp | The timestamp for the event |
float cugl::GestureEvent::error |
The delta between the template and the actual performed gesture.
Errors are normalized to be between 0 and 1, with 0 being accurate and 1 being an extreme error. However, errors greater than 1 are possible because of the normalization process.
int cugl::GestureEvent::fingers |
The number of fingers involved in this pan
std::string cugl::GestureEvent::key |
Identifier key for this gesture
The time of the gesture event
The documentation for this class was generated from the following file: