refactor(hid): Use proper defines for HID values.

* Add report ID defines and use them consistently.
* Add defines for main item value flags to avoid magic constants.
This commit is contained in:
Peter Johanson
2023-11-08 22:05:53 +00:00
committed by Pete Johanson
parent 34c8b3f1e3
commit c2d220fbdf
3 changed files with 43 additions and 17 deletions

View File

@@ -47,12 +47,12 @@ enum {
};
static struct hids_report input = {
.id = 0x01,
.id = ZMK_HID_REPORT_ID_KEYBOARD,
.type = HIDS_INPUT,
};
static struct hids_report consumer_input = {
.id = 0x02,
.id = ZMK_HID_REPORT_ID_CONSUMER,
.type = HIDS_INPUT,
};