Naming tweaks for the sensor behavior.

This commit is contained in:
Pete Johanson 2020-07-22 16:24:31 -04:00
parent 34ff6190bd
commit 5958bfed0b
2 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@
&kp LGUI &kp DEL &kp RET &kp SPC &kp ESC &kp RET &kp SPC &kp TAB &kp BKSP &kp RALT &kp LGUI &kp DEL &kp RET &kp SPC &kp ESC &kp RET &kp SPC &kp TAB &kp BKSP &kp RALT
>; >;
sensor-bindings = <&enccp M_VOLU M_VOLD &enckp PGUP PGDN>; sensor-bindings = <&inc_dec_cp M_VOLU M_VOLD &inc_dec_kp PGUP PGDN>;
}; };
}; };
}; };

View file

@ -2,14 +2,14 @@
/ { / {
behaviors { behaviors {
enckp: behavior_sensor_rotate_key_press { inc_dec_kp: behavior_sensor_rotate_key_press {
compatible = "zmk,behavior-sensor-rotate-key-press"; compatible = "zmk,behavior-sensor-rotate-key-press";
label = "ENC_KEY_PRESS"; label = "ENC_KEY_PRESS";
usage_page = <USAGE_KEYPAD>; usage_page = <USAGE_KEYPAD>;
#sensor-binding-cells = <2>; #sensor-binding-cells = <2>;
}; };
enccp: behavior_sensor_rotate_consumer_press { inc_dec_cp: behavior_sensor_rotate_consumer_press {
compatible = "zmk,behavior-sensor-rotate-key-press"; compatible = "zmk,behavior-sensor-rotate-key-press";
label = "ENC_CONSUMER_PRESS"; label = "ENC_CONSUMER_PRESS";
usage_page = <USAGE_CONSUMER>; usage_page = <USAGE_CONSUMER>;