CUGL 2.5
Cornell University Game Library
|
#include <CUGameController.h>
Public Member Functions | |
GameControllerHatEvent () | |
GameControllerHatEvent (const std::string key, Uint8 ind, Uint8 pos, const Timestamp &stamp) | |
Public Attributes | |
Timestamp | timestamp |
std::string | uuid |
Uint8 | index |
GameController::Hat | state |
This simple class is a struct to hold information about hat movement
A hat is a directional pad with 9 different states. This event will fire only when this state changes.
|
inline |
Constructs a new acceleration event with the default values
cugl::GameControllerHatEvent::GameControllerHatEvent | ( | const std::string | key, |
Uint8 | ind, | ||
Uint8 | pos, | ||
const Timestamp & | stamp | ||
) |
Constructs a new hat event with the given values
key | The device UID |
ind | The hat index |
pos | The hat position (in SDL encoding) |
stamp | The timestamp for the event |
Uint8 cugl::GameControllerHatEvent::index |
The hat index
GameController::Hat cugl::GameControllerHatEvent::state |
The new hat position
Timestamp cugl::GameControllerHatEvent::timestamp |
The time of the input event
std::string cugl::GameControllerHatEvent::uuid |
The UID of the relevant device