Pick upstream PR #21656

This commit is contained in:
lokher 2024-05-21 12:08:19 +08:00
parent dda14805a1
commit b6d42d84d2
13 changed files with 1292 additions and 1158 deletions

View file

@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* HID report IDs */
enum hid_report_ids {
REPORT_ID_ALL = 0,
REPORT_ID_KEYBOARD = 1,
REPORT_ID_MOUSE,
REPORT_ID_SYSTEM,
@ -33,9 +34,12 @@ enum hid_report_ids {
REPORT_ID_PROGRAMMABLE_BUTTON,
REPORT_ID_NKRO,
REPORT_ID_JOYSTICK,
REPORT_ID_DIGITIZER
REPORT_ID_DIGITIZER,
REPORT_ID_COUNT = REPORT_ID_DIGITIZER
};
#define IS_VALID_REPORT_ID(id) ((id) >= REPORT_ID_ALL && (id) <= REPORT_ID_COUNT)
#ifdef APDAPTIVE_NKRO_ENABLE
/* Keyboard report type */
#define KB_RPT_MASK(n) (1 << (n))