Browse Source

Naming tweaks for the sensor behavior.

xmkb
Pete Johanson 4 years ago
parent
commit
5958bfed0b
  1. 2
      app/boards/shields/kyria/keymap/keymap.overlay
  2. 4
      app/dts/behaviors/sensor_rotate_key_press.dtsi

2
app/boards/shields/kyria/keymap/keymap.overlay

@ -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>;
}; };
}; };
}; };

4
app/dts/behaviors/sensor_rotate_key_press.dtsi

@ -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>;

Loading…
Cancel
Save