refactor(hid): Replace deprecated HID usage page references

Deprecate `USAGE_KEYPAD` and replace with `HID_USAGE_KEY`.

Deprecate `USAGE_CONSUMER` and replace with `HID_USAGE_CONSUMER`.

Closes #217.
This commit is contained in:
innovaker
2020-11-03 16:54:16 +00:00
committed by Pete Johanson
parent 3c0a0ff308
commit e925319e4c
7 changed files with 24 additions and 19 deletions

View File

@@ -1,18 +1,19 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/hid_usage_pages.h>
/ {
behaviors {
kp: behavior_key_press {
compatible = "zmk,behavior-key-press";
label = "KEY_PRESS";
usage_page = <USAGE_KEYPAD>;
usage_page = <HID_USAGE_KEY>;
#binding-cells = <1>;
};
cp: behavior_consumer_press {
compatible = "zmk,behavior-key-press";
label = "CONSUMER_PRESS";
usage_page = <USAGE_CONSUMER>;
usage_page = <HID_USAGE_CONSUMER>;
#binding-cells = <1>;
};
};