openMSX
DummyJoystick.cc
Go to the documentation of this file.
1 #include "DummyJoystick.hh"
2 
3 namespace openmsx {
4 
5 byte DummyJoystick::read(EmuTime::param /*time*/)
6 {
7  return 0x3F;
8 }
9 
10 void DummyJoystick::write(byte /*value*/, EmuTime::param /*time*/)
11 {
12  // do nothing
13 }
14 
15 std::string_view DummyJoystick::getDescription() const
16 {
17  return {};
18 }
19 
21  EmuTime::param /*time*/)
22 {
23 }
24 
25 void DummyJoystick::unplugHelper(EmuTime::param /*time*/)
26 {
27 }
28 
29 } // namespace openmsx
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:9