mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
Feature: input processor behavior invocation (#2714)
refactor(pointing): Allow stopping event propagation
Allow input processors to return a special value if a given input event
should not be further processed/propagated.
feat(pointing): Add behavior input processor
Add the ability to intercept certain input events and trigger behaviors
when they occur.
Co-authored-by: Jorge Villalobos <minusfive@users.noreply.github.com>
Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
This commit is contained in:
@@ -162,7 +162,7 @@ static int temp_layer_handle_event(const struct device *dev, struct input_event
|
||||
k_work_reschedule(&layer_disable_works[param1], K_MSEC(param2));
|
||||
}
|
||||
|
||||
return 0;
|
||||
return ZMK_INPUT_PROC_CONTINUE;
|
||||
}
|
||||
|
||||
static int temp_layer_init(const struct device *dev) {
|
||||
|
||||
Reference in New Issue
Block a user