1 #ifndef JOYSTICKDEVICE_HH
2 #define JOYSTICKDEVICE_HH
19 [[nodiscard]]
virtual byte read(EmuTime::param time) = 0;
29 virtual void write(
byte value, EmuTime::param time) = 0;
31 [[nodiscard]] std::string_view
getClass() const final;
static constexpr int RD_PIN4
static constexpr int JOY_BUTTONA
static constexpr int JOY_RIGHT
static constexpr int RD_PIN3
static constexpr int RD_PIN2
static constexpr int JOY_LEFT
static constexpr int JOY_DOWN
static constexpr int RD_PIN6
virtual void write(byte value, EmuTime::param time)=0
Write a value to the joystick device.
static constexpr int WR_PIN8
static constexpr int RD_PIN7
static constexpr int WR_PIN7
static constexpr int JOY_BUTTONB
std::string_view getClass() const final
A pluggable belongs to a certain class.
static constexpr int RD_PIN1
virtual byte read(EmuTime::param time)=0
Read from the joystick device.
static constexpr int WR_PIN6
static constexpr int JOY_UP
This file implemented 3 utility functions: