openMSX
DummyJoystick.cc
Go to the documentation of this file.
1#include "DummyJoystick.hh"
2
3namespace openmsx {
4
5uint8_t DummyJoystick::read(EmuTime::param /*time*/)
6{
7 return 0x3F;
8}
9
10void DummyJoystick::write(uint8_t /*value*/, EmuTime::param /*time*/)
11{
12 // do nothing
13}
14
15std::string_view DummyJoystick::getDescription() const
16{
17 return {};
18}
19
21 EmuTime::param /*time*/)
22{
23}
24
25void 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
uint8_t read(EmuTime::param time) override
Read from the joystick device.
void plugHelper(Connector &connector, EmuTime::param time) override
std::string_view getDescription() const override
Description for this pluggable.
void write(uint8_t value, EmuTime::param time) override
Write a value to the joystick device.
This file implemented 3 utility functions:
Definition Autofire.cc:11