11 class MSXEventDistributor;
12 class StateChangeDistributor;
22 template<
typename Archive>
23 void serialize(Archive& ar,
unsigned version);
26 void createTrackballStateChange(EmuTime::param time,
27 int deltaX,
int deltaY,
byte press,
byte release);
29 void syncCurrentWithTarget(EmuTime::param time);
32 [[nodiscard]] std::string_view getName()
const override;
33 [[nodiscard]] std::string_view getDescription()
const override;
34 void plugHelper(
Connector& connector, EmuTime::param time)
override;
35 void unplugHelper(EmuTime::param time)
override;
38 [[nodiscard]]
byte read(EmuTime::param time)
override;
39 void write(
byte value, EmuTime::param time)
override;
42 void signalMSXEvent(
const Event& event,
43 EmuTime::param time) noexcept
override;
45 void signalStateChange(
const StateChange& event)
override;
46 void stopReplay(EmuTime::param time) noexcept
override;
53 signed char targetDeltaX, targetDeltaY;
54 signed char currentDeltaX, currentDeltaY;
Represents something you can plug devices into.
Base class for all external MSX state changing events.
Trackball(MSXEventDistributor &eventDistributor, StateChangeDistributor &stateChangeDistributor)
void serialize(Archive &ar, unsigned version)
This file implemented 3 utility functions:
SERIALIZE_CLASS_VERSION(CassettePlayer, 2)