openMSX
Public Member Functions | Static Public Attributes | List of all members
openmsx::JoystickAxisMotionEvent Class Referencefinal

#include <Event.hh>

Inheritance diagram for openmsx::JoystickAxisMotionEvent:
Inheritance graph
[legend]
Collaboration diagram for openmsx::JoystickAxisMotionEvent:
Collaboration graph
[legend]

Public Member Functions

 JoystickAxisMotionEvent (int joystick_, unsigned axis_, int value_)
 
unsigned getAxis () const
 
int getValue () const
 
- Public Member Functions inherited from openmsx::JoystickEvent
int getJoystick () const
 
- Public Member Functions inherited from openmsx::TimedEvent
uint64_t getRealTime () const
 

Static Public Attributes

static constexpr unsigned X_AXIS = 0
 
static constexpr unsigned Y_AXIS = 1
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::JoystickEvent
 JoystickEvent (int joystick_)
 

Detailed Description

Definition at line 239 of file Event.hh.

Constructor & Destructor Documentation

◆ JoystickAxisMotionEvent()

openmsx::JoystickAxisMotionEvent::JoystickAxisMotionEvent ( int  joystick_,
unsigned  axis_,
int  value_ 
)
inline

Definition at line 245 of file Event.hh.

Member Function Documentation

◆ getAxis()

unsigned openmsx::JoystickAxisMotionEvent::getAxis ( ) const
inline

Definition at line 248 of file Event.hh.

◆ getValue()

int openmsx::JoystickAxisMotionEvent::getValue ( ) const
inline

Definition at line 249 of file Event.hh.

Member Data Documentation

◆ X_AXIS

constexpr unsigned openmsx::JoystickAxisMotionEvent::X_AXIS = 0
staticconstexpr

Definition at line 242 of file Event.hh.

◆ Y_AXIS

constexpr unsigned openmsx::JoystickAxisMotionEvent::Y_AXIS = 1
staticconstexpr

Definition at line 243 of file Event.hh.


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