ezmsg-peripheraldevice#
Short description of your ezmsg package.
Installation#
pip install ezmsg-peripheraldevice
Dependencies#
ezmsgezmsg-baseprocnumpypynput
Usage#
Mouse Examples#
Event-driven mouse listener - captures every mouse movement event:
python examples/mouse_listen.py
Polling mouse position - reads mouse position at a fixed rate:
python examples/mouse_poll.py --rate 60
Programmatic Usage#
import ezmsg.core as ez
from ezmsg.peripheraldevice import MouseListener, MouseListenerSettings
from ezmsg.peripheraldevice import MousePoller, MousePollerSettings
Note: MouseListener requires extra permissions.
Development#
We use uv for development.
Install
uvif not already installed.Fork this repository and clone your fork locally.
Open a terminal and
cdto the cloned folder.Run
uv syncto create a.venvand install dependencies.(Optional) Install pre-commit hooks:
uv run pre-commit installAfter making changes, run the test suite:
uv run pytest tests
License#
MIT License - see LICENSE for details.
Documentation#
Contents: