diff options
Diffstat (limited to 'app/include/zmk/events/position_state_changed.h')
-rw-r--r-- | app/include/zmk/events/position_state_changed.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/include/zmk/events/position_state_changed.h b/app/include/zmk/events/position_state_changed.h index e2f6872..59619db 100644 --- a/app/include/zmk/events/position_state_changed.h +++ b/app/include/zmk/events/position_state_changed.h @@ -8,10 +8,19 @@ #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; uint32_t position; bool state; int64_t timestamp; }; -ZMK_EVENT_DECLARE(zmk_position_state_changed);
\ No newline at end of file +ZMK_EVENT_DECLARE(zmk_position_state_changed); |