| e8555c89 Andy McCall |
1 |
#ifndef SETETRISDONGLE_HH |
| 2 |
#define SETETRISDONGLE_HH |
| 3 |
|
| 4 |
#include "JoystickDevice.hh" |
| 5 |
|
| 6 |
namespace openmsx { |
| 7 |
|
| 8 |
class SETetrisDongle final : public JoystickDevice |
| 9 |
{ |
| 10 |
public: |
| 11 |
|
| 12 |
[[nodiscard]] zstring_view getName() const override; |
| 13 |
[[nodiscard]] zstring_view getDescription() const override; |
| 14 |
void plugHelper(Connector& connector, EmuTime time) override; |
| 15 |
void unplugHelper(EmuTime time) override; |
| 16 |
|
| 17 |
|
| 18 |
[[nodiscard]] uint8_t read(EmuTime time) override; |
| 19 |
void write(uint8_t value, EmuTime time) override; |
| 20 |
|
| 21 |
template<typename Archive> |
| 22 |
void serialize(Archive& ar, unsigned version); |
| 23 |
|
| 24 |
private: |
| 25 |
uint8_t status = JOY_UP | JOY_DOWN | JOY_LEFT | JOY_RIGHT | |
| 26 |
JOY_BUTTONA | JOY_BUTTONB; |
| 27 |
}; |
| 28 |
|
| 29 |
} |
| 30 |
|
| 31 |
#endif |