mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
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:
@@ -10,6 +10,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
/* WARNING: DEPRECATED from dt-bindings/zmk/keys.h */
|
||||
#define USAGE_KEYPAD (0x07) // WARNING: DEPRECATED (DO NOT USE)
|
||||
#define USAGE_CONSUMER (0x0C) // WARNING: DEPRECATED (DO NOT USE)
|
||||
|
||||
#define HID_USAGE_GD (0x01) // Generic Desktop
|
||||
#define HID_USAGE_SIM (0x02) // Simulation Controls
|
||||
#define HID_USAGE_VR (0x03) // VR Controls
|
||||
|
||||
@@ -6,10 +6,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <dt-bindings/zmk/modifiers.h>
|
||||
|
||||
#define USAGE_KEYPAD 0x07
|
||||
#define USAGE_CONSUMER 0x0C
|
||||
|
||||
#define A 0x04
|
||||
#define B 0x05
|
||||
#define C 0x06
|
||||
|
||||
Reference in New Issue
Block a user