fa07ba9d32
Use these instead of the magic return values 0 and 1 for behavior_driver_api return values.
22 lines
No EOL
365 B
C
22 lines
No EOL
365 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;
|
|
}; |