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

#include <SETetrisDongle.hh>

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

Public Member Functions

 SETetrisDongle ()
 
virtual const std::string & getName () const
 Name used to identify this pluggable. More...
 
virtual string_ref getDescription () const
 Description for this pluggable. More...
 
virtual void plugHelper (Connector &connector, EmuTime::param time)
 
virtual void unplugHelper (EmuTime::param time)
 
virtual byte read (EmuTime::param time)
 Read from the joystick device. More...
 
virtual void write (byte value, EmuTime::param time)
 Write a value to the joystick device. More...
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::JoystickDevice
virtual string_ref getClass () const
 A pluggable belongs to a certain class. More...
 
- Public Member Functions inherited from openmsx::Pluggable
 Pluggable ()
 
virtual ~Pluggable ()
 
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 conector. More...
 
ConnectorgetConnector () 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

- Protected Member Functions inherited from openmsx::Pluggable
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
 
static const int RD_PIN1 = 0x01
 
static const int RD_PIN2 = 0x02
 
static const int RD_PIN3 = 0x04
 
static const int RD_PIN4 = 0x08
 
static const int RD_PIN6 = 0x10
 
static const int RD_PIN7 = 0x20
 
static const int WR_PIN6 = 0x01
 
static const int WR_PIN7 = 0x02
 
static const int WR_PIN8 = 0x04
 

Detailed Description

Definition at line 8 of file SETetrisDongle.hh.

Constructor & Destructor Documentation

openmsx::SETetrisDongle::SETetrisDongle ( )

Member Function Documentation

string_ref openmsx::SETetrisDongle::getDescription ( ) const
virtual

Description for this pluggable.

Implements openmsx::Pluggable.

Definition at line 20 of file SETetrisDongle.cc.

const std::string & openmsx::SETetrisDongle::getName ( ) const
virtual

Name used to identify this pluggable.

Reimplemented from openmsx::Pluggable.

Definition at line 14 of file SETetrisDongle.cc.

void openmsx::SETetrisDongle::plugHelper ( Connector connector,
EmuTime::param  time 
)
virtual

Implements openmsx::Pluggable.

Definition at line 25 of file SETetrisDongle.cc.

byte openmsx::SETetrisDongle::read ( EmuTime::param  time)
virtual

Read from the joystick device.

The bits in the read byte have following meaning: 7 6 5 4 3 2 1 0 | xx | xx | BUTTON_B | BUTTON_A | RIGHT | LEFT | DOWN | UP | | xx | xx | pin7 | pin6 | pin4 | pin3 | pin2 | pin1|

Implements openmsx::JoystickDevice.

Definition at line 36 of file SETetrisDongle.cc.

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

Definition at line 53 of file SETetrisDongle.cc.

void openmsx::SETetrisDongle::unplugHelper ( EmuTime::param  time)
virtual

Implements openmsx::Pluggable.

Definition at line 30 of file SETetrisDongle.cc.

void openmsx::SETetrisDongle::write ( byte  value,
EmuTime::param  time 
)
virtual

Write a value to the joystick device.

The bits in the written byte have following meaning: 7 6 5 4 3 2 1 0 | xx | xx | xx | xx | xx | pin8 | pin7 | pin6 | As an optimization, this method might not be called when the new value is the same as the previous one.

Implements openmsx::JoystickDevice.

Definition at line 41 of file SETetrisDongle.cc.

References openmsx::JoystickDevice::JOY_RIGHT.


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