1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-11 08:30:55 +00:00

Add exposition.

This commit is contained in:
Thomas Harte 2023-08-20 15:34:40 -04:00
parent fa82fb46b9
commit 357a324e87

View File

@ -15,6 +15,8 @@ using namespace Apple::ADB;
Mouse::Mouse(Bus &bus) : ReactiveDevice(bus, 3) {}
void Mouse::perform_command(const Command &command) {
// This was picked empirically based on experimentation with the IIgs.
// Possible TODO: consider whether this is appropriate for other machines.
static constexpr int16_t max_delta = 30;
if(command.type == Command::Type::Talk && command.reg == 0) {