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