Checkpoint alpha: Reflow macros and keycodes into a consistent structure. Most internal state functionality largely untouched (just moved)

This commit is contained in:
Josh Klar
2018-12-29 04:44:52 -08:00
parent af140a16a6
commit 39a6465658
12 changed files with 767 additions and 967 deletions

View File

@@ -202,16 +202,6 @@ class Firmware:
if old_timeouts_len != new_timeouts_len:
state_changed = True
if self._state.macros_pending:
# Blindly assume macros are going to change state, which is almost
# always a safe assumption
state_changed = True
for macro in self._state.macros_pending:
for key in macro(self):
self._send_key(key)
self._state.resolve_macro()
if self.debug_enabled and state_changed:
print('New State: {}'.format(self._state._to_dict()))