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

uint8_t getAxis () const
 
int16_t getValue () const
 
- Public Member Functions inherited from openmsx::JoystickEvent
JoystickId getJoystick () const
 
 SdlEvent (const SDL_Event &e)
 
- Public Member Functions inherited from openmsx::SdlEvent
 SdlEvent (const SDL_Event &e)
 
const SDL_Event & getSdlEvent () const
 
const SDL_CommonEvent & getCommonSdlEvent () const
 

Static Public Attributes

static constexpr uint8_t X_AXIS = 0
 
static constexpr uint8_t Y_AXIS = 1
 

Additional Inherited Members

- Protected Attributes inherited from openmsx::SdlEvent
SDL_Event evt
 

Detailed Description

Definition at line 186 of file Event.hh.

Member Function Documentation

◆ getAxis()

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

Definition at line 194 of file Event.hh.

References openmsx::SdlEvent::evt.

◆ getValue()

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

Definition at line 195 of file Event.hh.

References openmsx::SdlEvent::evt.

Member Data Documentation

◆ X_AXIS

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

Definition at line 189 of file Event.hh.

◆ Y_AXIS

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

Definition at line 190 of file Event.hh.


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