otg keyboard leds

This commit is contained in:
Devaev Maxim
2020-02-20 11:11:39 +03:00
parent d732b4f518
commit 6cd4a0a988
12 changed files with 302 additions and 66 deletions

View File

@@ -61,7 +61,12 @@ class _WheelEvent(BaseEvent):
# =====
class MouseProcess(BaseDeviceProcess):
def __init__(self, **kwargs: Any) -> None:
super().__init__(name="mouse", **kwargs)
super().__init__(
name="mouse",
read_size=0,
initial_state={},
**kwargs,
)
self.__pressed_buttons: int = 0
self.__x = 0