![]() |
CUGL 3.0
Cornell University Game Library
|
#include <CUGameController.h>
Public Member Functions | |
| GameControllerButtonEvent () | |
| GameControllerButtonEvent (const std::string key, GameController::Button index, bool dwn, const Timestamp &stamp) | |
Public Attributes | |
| Timestamp | timestamp |
| std::string | uuid |
| GameController::Button | button |
| bool | down |
This simple class is a struct to hold information about button presses
A button has only two states: up and down. This event will fire only when this state changes.
|
inline |
Constructs a new button event with the default values
|
inline |
Constructs a new button event with the given values
| key | The device UID |
| index | The button index |
| dwn | Whether the button is pressed |
| stamp | The timestamp for the event |
| GameController::Button cugl::GameControllerButtonEvent::button |
The button reference
| bool cugl::GameControllerButtonEvent::down |
Whether the button event is from a press (not a release)
| Timestamp cugl::GameControllerButtonEvent::timestamp |
The time of the input event
| std::string cugl::GameControllerButtonEvent::uuid |
The UID of the relevant device