Mouse connector
This module provides the whad.unifying.connector.mouse.Mouse
class
that behaves like a Logitech Unifying mouse. This class is able to synchronize
with a specific dongle and send valid mouse and wheel moves as well as clicks.
This connector must be used with a compatible Logitech Unifying device.
- class whad.unifying.connector.mouse.Mouse(device: WhadDevice)[source]
Logitech Unifying Mouse interface for compatible WHAD device.
- property address: ESBStack
Retrieve the underlying stack
- Returns:
Underlying ESB stack instance
- Return type:
whad.esb.stack.ESBStack
- property channel: int
Retrieve current channel.
- Returns:
current channel number
- Return type:
int
- move(x: int, y: int)[source]
Send a move event to the target mouse dongle.
- Parameters:
x (int) – Delta X in ticks
y (int) – Delta Y in ticks