state to keyboard and hid switching

This commit is contained in:
Kyle Brown
2020-11-13 02:01:26 -08:00
parent 8839c1c7ec
commit 1bde64392e
4 changed files with 91 additions and 77 deletions

View File

@@ -39,6 +39,7 @@ class KMKKeyboard:
keys_pressed = set()
_coordkeys_pressed = {}
hid_type = HIDModes.USB
secondary_hid_type = None
_hid_helper = None
hid_pending = False
state_layer_key = None
@@ -429,8 +430,9 @@ class KMKKeyboard:
if self.debug_enabled:
print('Failed to run post hid function in extension: ', err, ext)
def go(self, hid_type=HIDModes.USB, **kwargs):
def go(self, hid_type=HIDModes.USB, secondary_hid_type=None, **kwargs):
self.hid_type = hid_type
self.secondary_hid_type = secondary_hid_type
self._init_sanity_check()
self._init_coord_mapping()