Implement keyboard clicker toggle

This commit is contained in:
Andrew Kay
2019-12-27 19:15:44 -06:00
parent d02f9844a4
commit 86fbbdfd29
5 changed files with 33 additions and 3 deletions

View File

@@ -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)