34 #ifndef __CU_ROTATION_INPUT_H__
35 #define __CU_ROTATION_INPUT_H__
36 #include <cugl/input/CUInput.h>
37 #include <cugl/math/CUVec2.h>
42 #pragma mark RotationEvent
74 position = point; fingers = down; rotation = angle; delta = angle; timestamp = stamp;
80 #pragma mark RotationListener
106 #pragma mark RotationInput
164 #pragma mark Constructor
183 virtual void dispose()
override;
185 #pragma mark Device Attributes
248 #pragma mark Data Polling
299 #pragma mark Listeners
456 #pragma mark Input Device
488 virtual void queryEvents(std::vector<Uint32>& eventset)
override;
Definition: CUTimestamp.h:61
float delta
Definition: CURotationInput.h:58
Vec2 position
Definition: CURotationInput.h:52
Timestamp timestamp
Definition: CURotationInput.h:50
float rotation
Definition: CURotationInput.h:56
RotationEvent()
Definition: CURotationInput.h:63
std::function< void(const RotationEvent &event, bool focus)> RotationListener
Definition: CURotationInput.h:103
int fingers
Definition: CURotationInput.h:54
Definition: CURotationInput.h:47
RotationEvent(const Vec2 &point, int down, float angle, const Timestamp &stamp)
Definition: CURotationInput.h:73
Definition: CUAnimationNode.h:52
static const Vec2 ZERO
Definition: CUVec2.h:71