openMSX
DummyJoystick.hh
Go to the documentation of this file.
1 #ifndef DUMMYJOYSTICK_HH
2 #define DUMMYJOYSTICK_HH
3 
4 #include "JoystickDevice.hh"
5 
6 namespace openmsx {
7 
8 class DummyJoystick final : public JoystickDevice
9 {
10 public:
11  byte read(EmuTime::param time) override;
12  void write(byte value, EmuTime::param time) override;
13  std::string_view getDescription() const override;
14  void plugHelper(Connector& connector, EmuTime::param time) override;
15  void unplugHelper(EmuTime::param time) override;
16 };
17 
18 } // namespace openmsx
19 
20 #endif
openmsx::DummyJoystick::read
byte read(EmuTime::param time) override
Read from the joystick device.
Definition: DummyJoystick.cc:5
openmsx::JoystickDevice
Definition: JoystickDevice.hh:9
JoystickDevice.hh
openmsx::DummyJoystick::plugHelper
void plugHelper(Connector &connector, EmuTime::param time) override
Definition: DummyJoystick.cc:20
openmsx::DummyJoystick::unplugHelper
void unplugHelper(EmuTime::param time) override
Definition: DummyJoystick.cc:25
openmsx::DummyJoystick
Definition: DummyJoystick.hh:8
openmsx::DummyJoystick::getDescription
std::string_view getDescription() const override
Description for this pluggable.
Definition: DummyJoystick.cc:15
openmsx::Connector
Represents something you can plug devices into.
Definition: Connector.hh:20
openmsx::DummyJoystick::write
void write(byte value, EmuTime::param time) override
Write a value to the joystick device.
Definition: DummyJoystick.cc:10
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5