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

#include <CUGameController.h>

Public Member Functions

 GameControllerDPadEvent ()
 
 GameControllerDPadEvent (const std::string key, GameController::DPad pos, const Timestamp &stamp)
 

Public Attributes

Timestamp timestamp
 
std::string uuid
 
GameController::DPad state
 

Detailed Description

This simple class is a struct to hold information about hat movement

A hat is a directional pad with 9 different states. This event will fire only when this state changes.

Constructor & Destructor Documentation

◆ GameControllerDPadEvent() [1/2]

cugl::GameControllerDPadEvent::GameControllerDPadEvent ( )
inline

Constructs a new acceleration event with the default values

◆ GameControllerDPadEvent() [2/2]

cugl::GameControllerDPadEvent::GameControllerDPadEvent ( const std::string  key,
GameController::DPad  pos,
const Timestamp stamp 
)
inline

Constructs a new hat event with the given values

Parameters
keyThe device UID
posThe hat position
stampThe timestamp for the event

Member Data Documentation

◆ state

GameController::DPad cugl::GameControllerDPadEvent::state

The new D-Pad position

◆ timestamp

Timestamp cugl::GameControllerDPadEvent::timestamp

The time of the input event

◆ uuid

std::string cugl::GameControllerDPadEvent::uuid

The UID of the relevant device


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