Roll back the tuple indexing change (now access by dot notation), optimize GESC and fix a bug in how it interacts with the reducer

This commit is contained in:
Josh Klar
2018-10-01 01:07:57 -07:00
parent b5457534bf
commit f80873fdd0
4 changed files with 25 additions and 29 deletions

View File

@@ -57,7 +57,6 @@ class MatrixScanner(AbstractMatrixScanner):
opin.value(0)
if len(pressed) != self.last_pressed_len:
print('LEN PRESSED {} LEN LAST PRESSED {}'.format(len(pressed), self.last_pressed_len))
self.last_pressed_len = len(pressed)
return matrix_changed(pressed)

View File

@@ -44,7 +44,7 @@ class HIDHelper:
self.report_non_mods = memoryview(self._evt)[3:]
def _subscription(self, state, action):
if action[0] == HID_REPORT_EVENT:
if action.type == HID_REPORT_EVENT:
self.clear_all()
consumer_key = None