openMSX
Public Types | Public Member Functions | List of all members
openmsx::BooleanJoystickHat Class Reference

#include <BooleanInput.hh>

Public Types

enum class  Direction : uint8_t { UP = SDL_HAT_UP , RIGHT = SDL_HAT_RIGHT , DOWN = SDL_HAT_DOWN , LEFT = SDL_HAT_LEFT }
 

Public Member Functions

 BooleanJoystickHat (JoystickId joystick_, uint8_t hat_, Direction value_)
 
auto getJoystick () const
 
auto getHat () const
 
auto getValue () const
 

Detailed Description

Definition at line 76 of file BooleanInput.hh.

Member Enumeration Documentation

◆ Direction

enum class openmsx::BooleanJoystickHat::Direction : uint8_t
strong
Enumerator
UP 
RIGHT 
DOWN 
LEFT 

Definition at line 79 of file BooleanInput.hh.

Constructor & Destructor Documentation

◆ BooleanJoystickHat()

openmsx::BooleanJoystickHat::BooleanJoystickHat ( JoystickId  joystick_,
uint8_t  hat_,
Direction  value_ 
)
inlineexplicit

Definition at line 86 of file BooleanInput.hh.

Member Function Documentation

◆ getHat()

auto openmsx::BooleanJoystickHat::getHat ( ) const
inline

Definition at line 90 of file BooleanInput.hh.

◆ getJoystick()

auto openmsx::BooleanJoystickHat::getJoystick ( ) const
inline

Definition at line 89 of file BooleanInput.hh.

◆ getValue()

auto openmsx::BooleanJoystickHat::getValue ( ) const
inline

Definition at line 91 of file BooleanInput.hh.


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