refactor(splits): Use index for event source.
* Track peripherals by indexes slot, with all appropiate peripheral state stored in the slot. * Event sources tracked by peripheral slot index.
This commit is contained in:
parent
e8540f17fc
commit
9297c5f2b4
8 changed files with 252 additions and 103 deletions
|
|
@ -20,8 +20,8 @@ int zmk_keymap_layer_toggle(uint8_t layer);
|
|||
int zmk_keymap_layer_to(uint8_t layer);
|
||||
const char *zmk_keymap_layer_label(uint8_t layer);
|
||||
|
||||
int zmk_keymap_position_state_changed(zmk_position_state_changed_source_t source, uint32_t position,
|
||||
bool pressed, int64_t timestamp);
|
||||
int zmk_keymap_position_state_changed(uint8_t source, uint32_t position, bool pressed,
|
||||
int64_t timestamp);
|
||||
|
||||
#define ZMK_KEYMAP_EXTRACT_BINDING(idx, drv_inst) \
|
||||
{ \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue