feature(behavior): add ZMK_BEHAVIOR_CAPTURED
This commit is contained in:
parent
578e6a0417
commit
fb44e0479e
2 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#define ZMK_BEHAVIOR_OPAQUE 0
|
||||
#define ZMK_BEHAVIOR_TRANSPARENT 1
|
||||
#define ZMK_BEHAVIOR_CAPTURED 2
|
||||
|
||||
struct zmk_behavior_binding {
|
||||
char *behavior_dev;
|
||||
|
|
|
@ -34,6 +34,8 @@ int zmk_behavior_state_changed(const struct behavior_state_changed *ev) {
|
|||
return ZMK_EV_EVENT_BUBBLE;
|
||||
case ZMK_BEHAVIOR_OPAQUE:
|
||||
return ZMK_EV_EVENT_HANDLED;
|
||||
case ZMK_BEHAVIOR_CAPTURED:
|
||||
return ZMK_EV_EVENT_CAPTURED;
|
||||
default:
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue