mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-04-02 11:25:18 -05:00
refactor(sensors): Split data handling from triggers.
* All sensor behaviors should see sensor data, then selectively only have some trigger their behaviors.
This commit is contained in:
committed by
Pete Johanson
parent
d781ec795b
commit
8b29f6d345
@@ -13,7 +13,8 @@
|
||||
#include "behavior_sensor_rotate_common.h"
|
||||
|
||||
static const struct behavior_driver_api behavior_sensor_rotate_driver_api = {
|
||||
.sensor_binding_triggered = zmk_behavior_sensor_rotate_common_trigger};
|
||||
.sensor_binding_data = zmk_behavior_sensor_rotate_common_data,
|
||||
.sensor_binding_process = zmk_behavior_sensor_rotate_common_process};
|
||||
|
||||
static int behavior_sensor_rotate_init(const struct device *dev) { return 0; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user