Skip to content

[codex] add mouse observation API - #20

Merged
inayayousfi merged 1 commit into
mainfrom
codex/add-mouse-observation-api
Aug 18, 2026
Merged

inayayousfi merged 1 commit into
mainfrom
codex/add-mouse-observation-api

Conversation

@inayayousfi

Copy link
Copy Markdown
Collaborator

Summary

Adds a public mouse observation API alongside the existing keyboard listener model. The new API exposes mouse state snapshots, polling, and a callback listener for cursor, button, and scroll changes.

Linux uses the existing libinput/libudev dependency path and preserves dynamic linking policy. Windows uses the standard Win32 cursor/button APIs and a low-level mouse hook.

Docs now describe the Linux behavior explicitly: libinput tracks pointer events but does not expose the compositor cursor position directly, so Linux polling returns the latest tracked state.

Validation

  • python -m py_compile build.py
  • python build.py test
  • python build.py integration-binaries

Notes

Windows implementation was source-reviewed from Linux but not compiled locally on Windows.

@inayayousfi
inayayousfi marked this pull request as ready for review August 18, 2026 18:24
@inayayousfi
inayayousfi merged commit a789890 into main Aug 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant