From d4fe745e71ea6c06b99468f2053f229752bb6af0 Mon Sep 17 00:00:00 2001 From: xs5871 Date: Mon, 20 Feb 2023 20:23:48 +0000 Subject: [PATCH] Cleanup PointingDevice from mouse_keys --- kmk/modules/mouse_keys.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/kmk/modules/mouse_keys.py b/kmk/modules/mouse_keys.py index 9532ab5..d4dd4b4 100644 --- a/kmk/modules/mouse_keys.py +++ b/kmk/modules/mouse_keys.py @@ -1,26 +1,8 @@ -from kmk.hid import HID_REPORT_SIZES, HIDReportTypes from kmk.keys import AX, make_key, make_mouse_key from kmk.kmktime import PeriodicTimer from kmk.modules import Module -class PointingDevice: - MB_LMB = 1 - MB_RMB = 2 - MB_MMB = 4 - _evt = bytearray(HID_REPORT_SIZES[HIDReportTypes.MOUSE] + 1) - - def __init__(self): - self.key_states = {} - self.hid_pending = False - self.report_device = memoryview(self._evt)[0:1] - self.report_device[0] = HIDReportTypes.MOUSE - self.button_status = memoryview(self._evt)[1:2] - self.report_x = memoryview(self._evt)[2:3] - self.report_y = memoryview(self._evt)[3:4] - self.report_w = memoryview(self._evt)[4:] - - class MouseKeys(Module): def __init__(self): self._nav_key_activated = 0