Add debug hooks to the event dispatcher, remove explicit prints

This commit is contained in:
Josh Klar
2018-09-03 13:50:12 -07:00
parent d9b909d841
commit ef639f5292
6 changed files with 98 additions and 84 deletions

View File

@@ -1,19 +1,4 @@
KEY_UP_EVENT = 'KEY_UP'
KEY_DOWN_EVENT = 'KEY_DOWN'
def key_up_event(keycode):
return {
'type': KEY_UP_EVENT,
'keycode': keycode,
}
def key_down_event(keycode):
return {
'type': KEY_DOWN_EVENT,
'keycode': keycode,
}
from kmk.common.event_defs import key_down_event, key_up_event
class Keymap: