forked from kofal.net/zmk
refactor: Add kscan sideband behavior driver
* Instead of gpio key behavior trigger, add new kscan driver that decorates/wraps a given kscan driver and will invoke basic system behavior assigned to a given row + column, without the need for keymap mapping in the matrix transform, bypassing keymaps entirely.
This commit is contained in:
committed by
Pete Johanson
parent
e78b25a445
commit
a0ad1d4c94
@@ -57,10 +57,19 @@ encoder: &qdec0 {
|
||||
wakeup-sources = <&wakeup_source>;
|
||||
};
|
||||
|
||||
soft_off_behavior_key {
|
||||
compatible = "zmk,gpio-key-behavior-trigger";
|
||||
status = "okay";
|
||||
bindings = <&soft_off>;
|
||||
key = <&button0>;
|
||||
soft_off_direct_kscan: soft_off_direct_kscan {
|
||||
compatible = "zmk,kscan-gpio-direct";
|
||||
input-keys = <&button0>;
|
||||
};
|
||||
|
||||
soft_off_sideband_behaviors {
|
||||
compatible = "zmk,kscan-sideband-behaviors";
|
||||
kscan = <&soft_off_direct_kscan>;
|
||||
soft_off {
|
||||
row = <0>;
|
||||
column = <0>;
|
||||
bindings = <&soft_off>;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user