![]() |
CUGL
Cornell University Game Library
|
#include <CUTouchscreen.h>
Public Member Functions | |
| TouchEvent () | |
| TouchEvent (TouchID finger, const Vec2 &point, float force, const Timestamp &stamp) | |
Public Attributes | |
| Timestamp | timestamp |
| TouchID | touch |
| Vec2 | position |
| float | pressure |
This simple class is a struct to hold touch event information.
|
inline |
Constructs a new touch event with the default values
|
inline |
Constructs a new touch event with the given values
| finger | The finger generating this event |
| point | The current touch position |
| force | The current touch pressure |
| stamp | The timestamp for the event |
| Vec2 cugl::TouchEvent::position |
The current touch position in screen coordinates
| float cugl::TouchEvent::pressure |
The current touch pressure (this is a normalized value 0..1)
| Timestamp cugl::TouchEvent::timestamp |
The time of the touch event
| TouchID cugl::TouchEvent::touch |
The associated finger for this touch event
1.8.10