openMSX
DummyJoystick.hh
Go to the documentation of this file.
1#ifndef DUMMYJOYSTICK_HH
2#define DUMMYJOYSTICK_HH
3
4#include "JoystickDevice.hh"
5
6namespace openmsx {
7
8class DummyJoystick final : public JoystickDevice
9{
10public:
11 [[nodiscard]] uint8_t read(EmuTime::param time) override;
12 void write(uint8_t 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
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