Hardware Mouse Module (mouse)
This module is available in versions after 20260805
The mouse module creates independent hardware mouse objects. Each call to mouse.connect creates a new object whose button state and lifecycle are independent of every other instance.
- ! Create and connect a hardware mouse object (mouse.connect)
- Move the hardware mouse (:move)
- Press a hardware mouse button (:down)
- Release a hardware mouse button (:up)
- ! Click a hardware mouse button (:click)
- Scroll the hardware mouse wheel (:scroll)
- Get the hardware mouse connection state (:is_connected)
- Get the hardware mouse creation properties (:get_properties)
- Disconnect the hardware mouse (:disconnect)