17#include "SubComponent.h"
24class ControlPort final :
public SubComponent {
27 friend class Joystick;
30 Descriptions descriptions = {
33 .description =
"Control Port 1"
37 .description =
"Control Port 2"
51 Mouse mouse = Mouse(c64, *
this);
52 Joystick joystick = Joystick(c64, *
this);
53 Paddle paddle = Paddle(c64, *
this);
62 ControlPort(C64 &ref, isize
id);
64 ControlPort& operator= (
const ControlPort& other) {
81 template <
class T>
void serialize(T& worker) {
89 } SERIALIZERS(serialize);
98 const Descriptions &getDescriptions()
const override {
return descriptions; }
102 void _dump(Category category, std::ostream& os)
const override;
115 void updateControlPort();
118 u8 getControlPort()
const;
136 void processCommand(
const Cmd &cmd);
VirtualC64 project namespace.
Definition CmdQueue.cpp:16
@ CPDEVICE_NONE
No device.
Definition ControlPortTypes.h:35