openMSX
Public Member Functions | List of all members
openmsx::KeyJoystick Class Reference

#include <KeyJoystick.hh>

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

Public Member Functions

 KeyJoystick (CommandController &commandController, MSXEventDistributor &eventDistributor, StateChangeDistributor &stateChangeDistributor, const std::string &name)
virtual ~KeyJoystick ()
template<typename Archive >
void serialize (Archive &ar, unsigned version)
- Public Member Functions inherited from openmsx::JoystickDevice
virtual byte read (EmuTime::param time)=0
 Read from the joystick device.
virtual void write (byte value, EmuTime::param time)=0
 Write a value to the joystick device.
virtual string_ref getClass () const
 A pluggable belongs to a certain class.
- Public Member Functions inherited from openmsx::Pluggable
 Pluggable ()
virtual ~Pluggable ()
virtual const std::string & getName () const
 Name used to identify this pluggable.
virtual string_ref getDescription () const =0
 Description for this pluggable.
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 conector.
ConnectorgetConnector () const
 Get the connector this Pluggable is plugged into.
bool isPluggedIn () const
 Returns true if this pluggable is currently plugged into a connector.

Additional Inherited Members

- Protected Member Functions inherited from openmsx::Pluggable
virtual void plugHelper (Connector &newConnector, EmuTime::param time)=0
virtual void unplugHelper (EmuTime::param time)=0
void setConnector (Connector *conn)
- Static Protected Attributes inherited from openmsx::JoystickDevice
static const int JOY_UP = 0x01
static const int JOY_DOWN = 0x02
static const int JOY_LEFT = 0x04
static const int JOY_RIGHT = 0x08
static const int JOY_BUTTONA = 0x10
static const int JOY_BUTTONB = 0x20
- Private Member Functions inherited from openmsx::MSXEventListener
virtual ~MSXEventListener ()
virtual void signalEvent (const std::shared_ptr< const Event > &event, EmuTime::param time)=0
 This method gets called when an event you are subscribed to occurs.
 MSXEventListener ()
- Private Member Functions inherited from openmsx::StateChangeListener
virtual void signalStateChange (const std::shared_ptr< StateChange > &event)=0
 This method gets called when a StateChange event occurs.
virtual void stopReplay (EmuTime::param time)=0
 This method gets called when we switch from replayed events to live events.
 StateChangeListener ()
virtual ~StateChangeListener ()

Detailed Description

Definition at line 17 of file KeyJoystick.hh.

Constructor & Destructor Documentation

openmsx::KeyJoystick::KeyJoystick ( CommandController commandController,
MSXEventDistributor eventDistributor,
StateChangeDistributor stateChangeDistributor,
const std::string &  name 
)
openmsx::KeyJoystick::~KeyJoystick ( )
virtual

Definition at line 67 of file KeyJoystick.cc.

References openmsx::EmuTime::dummy(), and openmsx::Pluggable::isPluggedIn().

Member Function Documentation

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

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