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

#include <MSXJoystick.hh>

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

Public Member Functions

 MSXJoystick (CommandController &commandController, MSXEventDistributor &eventDistributor, StateChangeDistributor &stateChangeDistributor, JoystickManager &joystickManager, uint8_t id)
 
 ~MSXJoystick () override
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::JoystickDevice
std::string_view getClass () const final
 A pluggable belongs to a certain class.
 
- Public Member Functions inherited from openmsx::Pluggable
virtual ~Pluggable ()=default
 
void plug (Connector &connector, EmuTime::param time)
 This method is called when this pluggable is inserted in a connector.
 
void unplug (EmuTime::param time)
 This method is called when this pluggable is removed from a connector.
 
ConnectorgetConnector () const
 Get the connector this Pluggable is plugged into.
 
bool isPluggedIn () const
 Returns true if this pluggable is currently plugged into a connector.
 

Static Public Member Functions

static TclObject getDefaultConfig (JoystickId joyId, const JoystickManager &joystickManager)
 

Additional Inherited Members

- Static Public Attributes inherited from openmsx::JoystickDevice
static constexpr uint8_t JOY_UP = 0x01
 
static constexpr uint8_t JOY_DOWN = 0x02
 
static constexpr uint8_t JOY_LEFT = 0x04
 
static constexpr uint8_t JOY_RIGHT = 0x08
 
static constexpr uint8_t JOY_BUTTONA = 0x10
 
static constexpr uint8_t JOY_BUTTONB = 0x20
 
static constexpr uint8_t RD_PIN1 = 0x01
 
static constexpr uint8_t RD_PIN2 = 0x02
 
static constexpr uint8_t RD_PIN3 = 0x04
 
static constexpr uint8_t RD_PIN4 = 0x08
 
static constexpr uint8_t RD_PIN6 = 0x10
 
static constexpr uint8_t RD_PIN7 = 0x20
 
static constexpr uint8_t WR_PIN6 = 0x01
 
static constexpr uint8_t WR_PIN7 = 0x02
 
static constexpr uint8_t WR_PIN8 = 0x04
 
- Protected Member Functions inherited from openmsx::Pluggable
 Pluggable ()
 
void setConnector (Connector *conn)
 

Detailed Description

Definition at line 21 of file MSXJoystick.hh.

Constructor & Destructor Documentation

◆ MSXJoystick()

openmsx::MSXJoystick::MSXJoystick ( CommandController commandController,
MSXEventDistributor eventDistributor,
StateChangeDistributor stateChangeDistributor,
JoystickManager joystickManager,
uint8_t  id 
)

Definition at line 65 of file MSXJoystick.cc.

References openmsx::Setting::getValue(), and openmsx::Setting::setChecker().

◆ ~MSXJoystick()

openmsx::MSXJoystick::~MSXJoystick ( )
override

Definition at line 85 of file MSXJoystick.cc.

References openmsx::Pluggable::isPluggedIn().

Member Function Documentation

◆ getDefaultConfig()

TclObject openmsx::MSXJoystick::getDefaultConfig ( JoystickId  joyId,
const JoystickManager joystickManager 
)
static

◆ serialize()

template<typename Archive >
void openmsx::MSXJoystick::serialize ( Archive &  ar,
unsigned  version 
)

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