![]() |
CUGL 2.5
Cornell University Game Library
|
#include <CUGameController.h>
Public Member Functions | |
| GameControllerBallEvent () | |
| GameControllerBallEvent (const std::string key, Uint8 ind, float dx, float dy, const Timestamp &stamp) | |
Public Attributes | |
| Timestamp | timestamp |
| std::string | uuid |
| Uint8 | index |
| Vec2 | offset |
This simple class is a struct to hold information about track ball movement
All track ball movement is relative. Unlike the other input devices there is no absolute state for a track ball. As such this even will be continuously generated as long as a track ball is moving, and will not fire when it is still.
|
inline |
Constructs a new track ball event with the default values
|
inline |
Constructs a new track ball event with the given values
| key | The device UID |
| ind | The track ball index |
| dx | The change in x position |
| dy | The change in y position |
| stamp | The timestamp for the event |
| Uint8 cugl::GameControllerBallEvent::index |
The track ball index
| Vec2 cugl::GameControllerBallEvent::offset |
The relative change in the track ball position
| Timestamp cugl::GameControllerBallEvent::timestamp |
The time of the input event
| std::string cugl::GameControllerBallEvent::uuid |
The UID of the relevant device