CUGL 2.5
Cornell University Game Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cugl::GameControllerInputEvent Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GameControllerInputEvent() [1/2]

cugl::GameControllerInputEvent::GameControllerInputEvent ( )
inline

Constructs a new device change event with the default values

◆ GameControllerInputEvent() [2/2]

cugl::GameControllerInputEvent::GameControllerInputEvent ( const std::string  key,
bool  add,
const Timestamp stamp 
)
inline

Constructs a new device change event with the given values

Parameters
keyThe device UID
addWhether the device was added (not removed)
stampThe timestamp for the event

Member Data Documentation

◆ added

bool cugl::GameControllerInputEvent::added

Whether this device is newly added (false means it was removed)

◆ timestamp

Timestamp cugl::GameControllerInputEvent::timestamp

The time of the device event

◆ uuid

std::string cugl::GameControllerInputEvent::uuid

The UID of the relevant device


The documentation for this class was generated from the following file: