forked from kofal.net/zmk
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:
committed by
Pete Johanson
parent
e8540f17fc
commit
9297c5f2b4
@@ -8,16 +8,9 @@
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <zmk/event_manager.h>
|
||||
#include <bluetooth/addr.h>
|
||||
|
||||
#if IS_ENABLED(CONFIG_ZMK_BLE)
|
||||
typedef const bt_addr_le_t *zmk_position_state_changed_source_t;
|
||||
#else
|
||||
typedef void *zmk_position_state_changed_source_t;
|
||||
#endif
|
||||
|
||||
struct zmk_position_state_changed {
|
||||
zmk_position_state_changed_source_t source;
|
||||
uint8_t source;
|
||||
uint32_t position;
|
||||
bool state;
|
||||
int64_t timestamp;
|
||||
|
||||
Reference in New Issue
Block a user