Unbreak the general idea of KC_DF and KC_MO, though still needs heavy refactors

This commit is contained in:
Josh Klar
2018-09-21 23:44:30 -07:00
parent 8a55dcca04
commit 392917082a
6 changed files with 69 additions and 45 deletions

View File

@@ -5,32 +5,29 @@ KEY_DOWN_EVENT = const(2)
INIT_FIRMWARE_EVENT = const(3)
def init_firmware(keymap, row_pins, col_pins, diode_orientation, active_layers):
def init_firmware(keymap, row_pins, col_pins, diode_orientation):
return {
'type': INIT_FIRMWARE_EVENT,
'keymap': keymap,
'row_pins': row_pins,
'col_pins': col_pins,
'diode_orientation': diode_orientation,
'active_layers': active_layers,
}
def key_up_event(keycode, row, col, active_layers):
def key_up_event(keycode, row, col):
return {
'type': KEY_UP_EVENT,
'keycode': keycode,
'row': row,
'col': col,
'active_layers': active_layers,
}
def key_down_event(keycode, row, col, active_layers):
def key_down_event(keycode, row, col):
return {
'type': KEY_DOWN_EVENT,
'keycode': keycode,
'row': row,
'col': col,
'active_layers': active_layers,
}