openMSX
|
#include <JoystickPort.hh>
Public Member Functions | |
JoystickPort (PluggingController &pluggingController, std::string name, std::string description) | |
JoystickDevice & | getPluggedJoyDev () const |
std::string_view | getDescription () const override |
Get a description for this connector. | |
std::string_view | getClass () const override |
A Connector belong to a certain class. | |
void | plug (Pluggable &device, EmuTime::param time) override |
This plugs a Pluggable in this Connector. | |
uint8_t | read (EmuTime::param time) override |
void | write (uint8_t value, EmuTime::param time) override |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Public Member Functions inherited from openmsx::JoystickPortIf | |
virtual | ~JoystickPortIf ()=default |
Public Member Functions inherited from openmsx::Connector | |
Connector (const Connector &)=delete | |
Connector (Connector &&)=delete | |
Connector & | operator= (const Connector &)=delete |
Connector & | operator= (Connector &&)=delete |
const std::string & | getName () const |
Name that identifies this connector. | |
virtual void | unplug (EmuTime::param time) |
This unplugs the currently inserted Pluggable from this Connector. | |
Pluggable & | getPlugged () const |
Returns the Pluggable currently plugged in. | |
PluggingController & | getPluggingController () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::JoystickPortIf | |
JoystickPortIf ()=default | |
Protected Member Functions inherited from openmsx::Connector | |
Connector (PluggingController &pluggingController, std::string name, std::unique_ptr< Pluggable > dummy) | |
Creates a new Connector. | |
~Connector () | |
Definition at line 23 of file JoystickPort.hh.
openmsx::JoystickPort::JoystickPort | ( | PluggingController & | pluggingController, |
std::string | name, | ||
std::string | description | ||
) |
Definition at line 11 of file JoystickPort.cc.
|
overridevirtual |
A Connector belong to a certain class.
Only Pluggables of this class can be plugged in this Connector.
Implements openmsx::Connector.
Definition at line 23 of file JoystickPort.cc.
|
overridevirtual |
Get a description for this connector.
Implements openmsx::Connector.
Definition at line 18 of file JoystickPort.cc.
JoystickDevice & openmsx::JoystickPort::getPluggedJoyDev | ( | ) | const |
Definition at line 28 of file JoystickPort.cc.
References openmsx::Connector::getPlugged().
|
overridevirtual |
This plugs a Pluggable in this Connector.
The default implementation is ok.
PlugException |
Reimplemented from openmsx::Connector.
Definition at line 33 of file JoystickPort.cc.
References getPluggedJoyDev(), openmsx::Connector::plug(), and openmsx::JoystickDevice::write().
|
overridevirtual |
Implements openmsx::JoystickPortIf.
Definition at line 39 of file JoystickPort.cc.
References getPluggedJoyDev(), and openmsx::JoystickDevice::read().
void openmsx::JoystickPort::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 55 of file JoystickPort.cc.
References openmsx::Connector::getPluggingController().
|
overridevirtual |
Implements openmsx::JoystickPortIf.
Definition at line 44 of file JoystickPort.cc.