Listen to KEY_DOWN_EVENT and KEY_UP_EVENT in the HIDHelper and actually send. Working keyboard! ⌨

This commit is contained in:
Josh Klar
2018-09-16 23:20:16 -07:00
parent 6933d9c484
commit 3e99f0c8e3
8 changed files with 308 additions and 245 deletions

View File

@@ -19,7 +19,7 @@ class ReduxStore:
self.state = self.reducer(self.state, action)
self.logger.debug('Dispatching complete: {}'.format(action))
self.logger.debug('Calling subscriptions')
self.logger.debug('New state: {}'.format(self.state))
for cb in self.callbacks:
if cb is not None:
@@ -29,8 +29,6 @@ class ReduxStore:
self.logger.error('Callback failed, moving on')
print(sys.print_exception(e), file=sys.stderr)
self.logger.debug('Callbacks complete')
def get_state(self):
return self.state