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

#include <CUGamepad.h>

Public Member Functions

 GamepadInputEvent ()
 
 GamepadInputEvent (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

◆ GamepadInputEvent() [1/2]

cugl::GamepadInputEvent::GamepadInputEvent ( )
inline

Constructs a new device change event with the default values

◆ GamepadInputEvent() [2/2]

cugl::GamepadInputEvent::GamepadInputEvent ( 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::GamepadInputEvent::added

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

◆ timestamp

Timestamp cugl::GamepadInputEvent::timestamp

The time of the device event

◆ uuid

std::string cugl::GamepadInputEvent::uuid

The UID of the relevant device


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