![]() |
CUGL 2.5
Cornell University Game Library
|
#include <CUGameController.h>
Public Member Functions | |
| GameControllerAxisEvent () | |
| GameControllerAxisEvent (const std::string key, Uint8 ind, float pos, const Timestamp &stamp) | |
Public Attributes | |
| Timestamp | timestamp |
| std::string | uuid |
| Uint8 | index |
| 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 |
| ind | The axis index |
| pos | The axis position in [-1,1] |
| stamp | The timestamp for the event |
| Uint8 cugl::GameControllerAxisEvent::index |
The axis index
| 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]