![]() |
CUGL 3.0
Cornell University Game Library
|
#include <CUGameController.h>
Public Member Functions | |
GameControllerInputEvent () | |
GameControllerInputEvent (const std::string key, bool add, const Timestamp &stamp) | |
Public Attributes | |
Timestamp | timestamp |
std::string | uuid |
bool | added |
This simple class is a struct to hold information about a device change.
This event is generated when new devices are added to the device list, or when an existing device is removed.
|
inline |
Constructs a new device change event with the default values
|
inline |
Constructs a new device change event with the given values
key | The device UID |
add | Whether the device was added (not removed) |
stamp | The timestamp for the event |
bool cugl::GameControllerInputEvent::added |
Whether this device is newly added (false means it was removed)
Timestamp cugl::GameControllerInputEvent::timestamp |
The time of the device event
std::string cugl::GameControllerInputEvent::uuid |
The UID of the relevant device