A cycle-accurate Apple II and Apple IIgs emulator written in Zig, usable as both a program and a library.

a mouse that is switched off does not follow the hand

The other half of technical note Mouse #3, and the same mistake as the interrupt: `moveTo` took the host's position whatever the mode said, and only declined to interrupt about it. The note's first sentence on what switching the mouse off does is "the mouse position is not tracked; any mouse motion is ignored". `moveTo` is the hand on the desk, and now returns without doing anything while the mouse is off. It is the only path that does: the note is careful that the program's own routines still work — "PosMouse and ClearMouse will change the mouse position, ClampMouse will set new clamp values" — and `positionTo`, `clear`, `home` and `clamp` all set the position directly rather than through here, so they already behaved. `setButton` keeps gating its interrupt on the mode instead of returning early, which is not an inconsistency: the note says the position is not tracked and says nothing of the kind about the buttons. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SMvnfKpLVGm494n43AMhzY


Author jcollie.dev
Co-author Claude Opus 5 (1M context) Date Commit Parent 841b7bc3
+21 -1
1 changed file
+21 -1
1 changed file