mirror of
https://github.com/lowobservable/oec.git
synced 2026-03-06 03:18:54 +00:00
Implement keyboard clicker toggle
This commit is contained in:
@@ -114,7 +114,7 @@ class Key(Enum):
|
||||
CURSOR_SELECT = 402
|
||||
CURSOR_BLINK = 403
|
||||
ERASE_EOF = 404
|
||||
VOLUME = 405
|
||||
CLICKER = 405
|
||||
ALT_CURSOR = 406
|
||||
IDENT = 407
|
||||
|
||||
@@ -303,6 +303,8 @@ class Keyboard:
|
||||
|
||||
self.modifier_release = False
|
||||
|
||||
self.clicker = False
|
||||
|
||||
def get_key(self, scan_code):
|
||||
"""Map a scan code to key and update modifiers state."""
|
||||
key = self.keymap.default.get(scan_code)
|
||||
|
||||
Reference in New Issue
Block a user