![]() |
CUGL 2.5
Cornell University Game Library
|
#include <CUGameController.h>
Public Member Functions | |
| GameControllerButtonEvent () | |
| GameControllerButtonEvent (const std::string key, Uint8 ind, bool dwn, const Timestamp &stamp) | |
Public Attributes | |
| Timestamp | timestamp |
| std::string | uuid |
| Uint8 | index |
| 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 |
| ind | The button index |
| dwn | Whether the button is pressed |
| stamp | The timestamp for the event |
| bool cugl::GameControllerButtonEvent::down |
Whether the button event is from a press (not a release)
| Uint8 cugl::GameControllerButtonEvent::index |
The button index
| Timestamp cugl::GameControllerButtonEvent::timestamp |
The time of the input event
| std::string cugl::GameControllerButtonEvent::uuid |
The UID of the relevant device