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

#include <CUGamepad.h>

Public Member Functions

 GamepadDPadEvent ()
 
 GamepadDPadEvent (const std::string key, Gamepad::DPad pos, const Timestamp &stamp)
 

Public Attributes

Timestamp timestamp
 
std::string uuid
 
Gamepad::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

◆ GamepadDPadEvent() [1/2]

cugl::GamepadDPadEvent::GamepadDPadEvent ( )
inline

Constructs a new acceleration event with the default values

◆ GamepadDPadEvent() [2/2]

cugl::GamepadDPadEvent::GamepadDPadEvent ( const std::string  key,
Gamepad::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

Gamepad::DPad cugl::GamepadDPadEvent::state

The new D-Pad position

◆ timestamp

Timestamp cugl::GamepadDPadEvent::timestamp

The time of the input event

◆ uuid

std::string cugl::GamepadDPadEvent::uuid

The UID of the relevant device


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