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  [[nodiscard]] byte read(EmuTime::param time) override;
12  void write(byte value, EmuTime::param time) override;
13  [[nodiscard]] 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
Represents something you can plug devices into.
Definition: Connector.hh:21
void unplugHelper(EmuTime::param time) override
byte read(EmuTime::param time) override
Read from the joystick device.
Definition: DummyJoystick.cc:5
void write(byte value, EmuTime::param time) override
Write a value to the joystick device.
void plugHelper(Connector &connector, EmuTime::param time) override
std::string_view getDescription() const override
Description for this pluggable.
This file implemented 3 utility functions:
Definition: Autofire.cc:5