![]() |
CUGL 3.0
Cornell University Game Library
|
#include <CUGameController.h>
Public Member Functions | |
GameControllerAxisEvent () | |
GameControllerAxisEvent (const std::string key, GameController::Axis index, float pos, const Timestamp &stamp) | |
Public Attributes | |
Timestamp | timestamp |
std::string | uuid |
GameController::Axis | axis |
float | value |
This simple class is a struct to hold information about an axis movement.
This event is generated when an axis changes position. Remember that analogue joysticks are composed of two axes, and thuse will have two events associated with them.
|
inline |
Constructs a new axis event with the default values
|
inline |
Constructs a new axis event with the given values
key | The device UID |
index | The axis index |
pos | The axis position in [-1,1] |
stamp | The timestamp for the event |
GameController::Axis cugl::GameControllerAxisEvent::axis |
The axis reference
Timestamp cugl::GameControllerAxisEvent::timestamp |
The time of the input event
std::string cugl::GameControllerAxisEvent::uuid |
The UID of the relevant device
float cugl::GameControllerAxisEvent::value |
The value in the range [-1,1]