zmk/app/include/zmk/behavior.h
Okke Formsma 25fd5b2402 feat(events): Add trace_id to position, behavior and key events
With the trace_id it's possible for behaviors to keep track of which events were caused by which trigger.
2021-02-16 21:58:34 +01:00

23 lines
No EOL
388 B
C

/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#define ZMK_BEHAVIOR_OPAQUE 0
#define ZMK_BEHAVIOR_TRANSPARENT 1
struct zmk_behavior_binding {
char *behavior_dev;
uint32_t param1;
uint32_t param2;
};
struct zmk_behavior_binding_event {
int layer;
uint32_t position;
int64_t timestamp;
uint32_t trace_id;
};