openMSX
CircuitDesignerRDDongle.hh
Go to the documentation of this file.
1#ifndef CIRCUITDESIGNERRDDONGLE_HH
2#define CIRCUITDESIGNERRDDONGLE_HH
3
4#include "JoystickDevice.hh"
5
6namespace openmsx {
7
9{
10public:
11 // Pluggable
12 [[nodiscard]] std::string_view getName() const 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 // JoystickDevice
18 [[nodiscard]] uint8_t read(EmuTime::param time) override;
19 void write(uint8_t value, EmuTime::param time) override;
20
21 template<typename Archive>
22 void serialize(Archive& ar, unsigned version);
23
24private:
25 uint8_t status = JOY_UP | JOY_DOWN | JOY_LEFT | JOY_RIGHT |
27};
28
29} // namespace openmsx
30
31#endif
void write(uint8_t value, EmuTime::param time) override
Write a value to the joystick device.
uint8_t read(EmuTime::param time) override
Read from the joystick device.
void unplugHelper(EmuTime::param time) override
void plugHelper(Connector &connector, EmuTime::param time) override
void serialize(Archive &ar, unsigned version)
std::string_view getDescription() const override
Description for this pluggable.
std::string_view getName() const override
Name used to identify this pluggable.
Represents something you can plug devices into.
Definition Connector.hh:21
static constexpr uint8_t JOY_BUTTONA
static constexpr uint8_t JOY_RIGHT
static constexpr uint8_t JOY_LEFT
static constexpr uint8_t JOY_DOWN
static constexpr uint8_t JOY_UP
static constexpr uint8_t JOY_BUTTONB
This file implemented 3 utility functions:
Definition Autofire.cc:11