openMSX
|
#include <Paddle.hh>
Public Member Functions | |
Paddle (MSXEventDistributor &eventDistributor, StateChangeDistributor &stateChangeDistributor) | |
~Paddle () override | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
![]() | |
virtual uint8_t | read (EmuTime::param time)=0 |
Read from the joystick device. More... | |
virtual void | write (uint8_t value, EmuTime::param time)=0 |
Write a value to the joystick device. More... | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. More... | |
![]() | |
virtual | ~Pluggable ()=default |
virtual std::string_view | getName () const |
Name used to identify this pluggable. More... | |
virtual std::string_view | getClass () const =0 |
A pluggable belongs to a certain class. More... | |
virtual std::string_view | getDescription () const =0 |
Description for this pluggable. More... | |
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 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 |
![]() | |
Pluggable () | |
virtual void | plugHelper (Connector &newConnector, EmuTime::param time)=0 |
virtual void | unplugHelper (EmuTime::param time)=0 |
void | setConnector (Connector *conn) |
openmsx::Paddle::Paddle | ( | MSXEventDistributor & | eventDistributor, |
StateChangeDistributor & | stateChangeDistributor | ||
) |
|
override |
Definition at line 38 of file Paddle.cc.
References openmsx::Pluggable::isPluggedIn().
void openmsx::Paddle::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 120 of file Paddle.cc.
References openmsx::Pluggable::getConnector(), and openmsx::Pluggable::isPluggedIn().