Browse Source

refactor(hid): Replace modifier usage values with their cpp definitions

Improves readability of the HID reports.
xmkb
innovaker 4 years ago committed by Pete Johanson
parent
commit
b6e63683d4
  1. 4
      app/include/zmk/hid.h

4
app/include/zmk/hid.h

@ -37,10 +37,10 @@ static const u8_t zmk_hid_report_desc[] = {
HID_USAGE_KEY, HID_USAGE_KEY,
/* USAGE_MINIMUM (Keyboard LeftControl) */ /* USAGE_MINIMUM (Keyboard LeftControl) */
HID_LI_USAGE_MIN(1), HID_LI_USAGE_MIN(1),
0xE0, HID_USAGE_KEY_KEYBOARD_LEFTCONTROL,
/* USAGE_MAXIMUM (Keyboard Right GUI) */ /* USAGE_MAXIMUM (Keyboard Right GUI) */
HID_LI_USAGE_MAX(1), HID_LI_USAGE_MAX(1),
0xE7, HID_USAGE_KEY_KEYBOARD_RIGHT_GUI,
/* LOGICAL_MINIMUM (0) */ /* LOGICAL_MINIMUM (0) */
HID_GI_LOGICAL_MIN(1), HID_GI_LOGICAL_MIN(1),
0x00, 0x00,

Loading…
Cancel
Save