![]()  | 
  
    CUGL 3.0
    
   Cornell University Game Library 
   | 
 
#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 | 
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.
      
  | 
  inline | 
Constructs a new acceleration event with the default values
      
  | 
  inline | 
Constructs a new hat event with the given values
| key | The device UID | 
| pos | The hat position | 
| stamp | The timestamp for the event | 
| GameController::DPad cugl::GameControllerDPadEvent::state | 
The new D-Pad position
| Timestamp cugl::GameControllerDPadEvent::timestamp | 
The time of the input event
| std::string cugl::GameControllerDPadEvent::uuid | 
The UID of the relevant device