rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
Public Types | Public Member Functions | List of all members
rolmodl::HatState Struct Reference

Public Types

enum  Position {
  TopLeft, Top, TopRight, Left,
  Center, Right, BottomLeft, Bottom,
  BottomRight
}
 

Public Member Functions

constexpr HatState (const uint8_t v) noexcept
 
constexpr uint8_t unsafe_toSDLEnum () const
 
constexpr bool pointsLeft () const
 
constexpr bool pointsRight () const
 
constexpr bool pointsUp () const
 
constexpr bool pointsDown () const
 
constexpr Position pos () const
 

Detailed Description

Definition at line 37 of file Event.hpp.


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