Deprecate `USAGE_KEYPAD` and replace with `HID_USAGE_KEY`. Deprecate `USAGE_CONSUMER` and replace with `HID_USAGE_CONSUMER`. Closes #217.
20 lines
493 B
Text
20 lines
493 B
Text
|
|
#include <dt-bindings/zmk/hid_usage_pages.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
inc_dec_kp: behavior_sensor_rotate_key_press {
|
|
compatible = "zmk,behavior-sensor-rotate-key-press";
|
|
label = "ENC_KEY_PRESS";
|
|
usage_page = <HID_USAGE_KEY>;
|
|
#sensor-binding-cells = <2>;
|
|
};
|
|
|
|
inc_dec_cp: behavior_sensor_rotate_consumer_press {
|
|
compatible = "zmk,behavior-sensor-rotate-key-press";
|
|
label = "ENC_CONSUMER_PRESS";
|
|
usage_page = <HID_USAGE_CONSUMER>;
|
|
#sensor-binding-cells = <2>;
|
|
};
|
|
};
|
|
};
|