mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
refactor: Condition source props on CONFIG_ZMK_SPLIT
This commit is contained in:
committed by
Pete Johanson
parent
b249135742
commit
fb18a4d871
@@ -26,7 +26,9 @@ struct zmk_behavior_binding_event {
|
||||
int layer;
|
||||
uint32_t position;
|
||||
int64_t timestamp;
|
||||
#if IS_ENABLED(CONFIG_ZMK_SPLIT)
|
||||
uint8_t source;
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
#include <stdint.h>
|
||||
#include <zmk/behavior.h>
|
||||
|
||||
int zmk_behavior_queue_add(uint32_t position, uint8_t source,
|
||||
int zmk_behavior_queue_add(const struct zmk_behavior_binding_event *event,
|
||||
const struct zmk_behavior_binding behavior, bool press, uint32_t wait);
|
||||
|
||||
Reference in New Issue
Block a user