openMSX
|
#include <KeyJoystick.hh>
Public Member Functions | |
KeyJoystick (CommandController &commandController, MSXEventDistributor &eventDistributor, StateChangeDistributor &stateChangeDistributor, std::string name) | |
~KeyJoystick () override | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
![]() | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. More... | |
![]() | |
virtual | ~Pluggable ()=default |
void | plug (Connector &connector, EmuTime::param time) |
This method is called when this pluggable is inserted in a connector. More... | |
void | unplug (EmuTime::param time) |
This method is called when this pluggable is removed from a connector. More... | |
Connector * | getConnector () const |
Get the connector this Pluggable is plugged into. More... | |
bool | isPluggedIn () const |
Returns true if this pluggable is currently plugged into a connector. More... | |
Additional Inherited Members | |
![]() | |
static constexpr int | JOY_UP = 0x01 |
static constexpr int | JOY_DOWN = 0x02 |
static constexpr int | JOY_LEFT = 0x04 |
static constexpr int | JOY_RIGHT = 0x08 |
static constexpr int | JOY_BUTTONA = 0x10 |
static constexpr int | JOY_BUTTONB = 0x20 |
static constexpr int | RD_PIN1 = 0x01 |
static constexpr int | RD_PIN2 = 0x02 |
static constexpr int | RD_PIN3 = 0x04 |
static constexpr int | RD_PIN4 = 0x08 |
static constexpr int | RD_PIN6 = 0x10 |
static constexpr int | RD_PIN7 = 0x20 |
static constexpr int | WR_PIN6 = 0x01 |
static constexpr int | WR_PIN7 = 0x02 |
static constexpr int | WR_PIN8 = 0x04 |
![]() | |
Pluggable () | |
void | setConnector (Connector *conn) |
Definition at line 16 of file KeyJoystick.hh.
openmsx::KeyJoystick::KeyJoystick | ( | CommandController & | commandController, |
MSXEventDistributor & | eventDistributor, | ||
StateChangeDistributor & | stateChangeDistributor, | ||
std::string | name | ||
) |
Definition at line 40 of file KeyJoystick.cc.
References openmsx::JoystickDevice::JOY_BUTTONA, openmsx::JoystickDevice::JOY_BUTTONB, openmsx::JoystickDevice::JOY_DOWN, openmsx::JoystickDevice::JOY_LEFT, openmsx::JoystickDevice::JOY_RIGHT, and openmsx::JoystickDevice::JOY_UP.
|
override |
Definition at line 64 of file KeyJoystick.cc.
References openmsx::Pluggable::isPluggedIn().
void openmsx::KeyJoystick::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 176 of file KeyJoystick.cc.
References openmsx::Pluggable::getConnector(), and openmsx::Pluggable::isPluggedIn().