refactor(sensors): Sensor event channel data, resolution tweaks.
* Refactor sensor events to include channel data, necessary for prop split encoders, and avoiding duplicate calls, to fetch channel data twice, etc. * More consistent behavior driver API. * Allow setting triggers per resolution at the behavior level optionally.
This commit is contained in:
parent
dcf5e75fa6
commit
2244bd3d81
12 changed files with 258 additions and 83 deletions
|
|
@ -9,4 +9,14 @@ compatible: "zmk,keymap-sensors"
|
|||
properties:
|
||||
sensors:
|
||||
type: phandles
|
||||
required: true
|
||||
required: false
|
||||
triggers-per-rotation:
|
||||
type: int
|
||||
required: false
|
||||
|
||||
child-binding:
|
||||
description: Per-sensor configuration settings
|
||||
properties:
|
||||
triggers-per-rotation:
|
||||
type: int
|
||||
required: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue