2020-10-01 15:56:54 +10:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
2020-05-11 07:13:24 +10:00
|
|
|
#pragma once
|
|
|
|
|
2020-11-04 03:57:13 +11:00
|
|
|
#include <dt-bindings/zmk/hid_usage.h>
|
2020-10-26 15:30:24 +11:00
|
|
|
#include <dt-bindings/zmk/hid_usage_pages.h>
|
2020-11-03 16:21:20 +11:00
|
|
|
#include <dt-bindings/zmk/modifiers.h>
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* System Power Down */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SYSTEM_POWER (HID_USAGE(HID_USAGE_GD, HID_USAGE_GD_SYSTEM_POWER_DOWN))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define SYS_PWR (SYSTEM_POWER)
|
|
|
|
|
|
|
|
/* System Sleep */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SYSTEM_SLEEP (HID_USAGE(HID_USAGE_GD, HID_USAGE_GD_SYSTEM_SLEEP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define SYS_SLEEP (SYSTEM_SLEEP)
|
|
|
|
|
|
|
|
/* System Wake Up */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SYSTEM_WAKE_UP (HID_USAGE(HID_USAGE_GD, HID_USAGE_GD_SYSTEM_WAKE_UP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define SYS_WAKE (SYSTEM_WAKE_UP)
|
|
|
|
|
|
|
|
/* Keyboard a and A */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define A (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_A))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard b and B */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define B (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_B))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard c and C */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_C))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard d and D */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define D (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_D))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard e and E */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define E (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_E))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard f and F */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard g and G */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define G (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_G))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard h and H */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define H (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_H))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard i and I */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define I (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_I))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard j and J */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define J (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_J))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard k and K */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_K))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard l and L */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define L (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_L))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard m and M */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define M (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_M))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard n and N */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define N (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_N))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard o and O */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define O (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_O))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard p and P */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define P (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_P))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard q and Q */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define Q (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_Q))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard r and R */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define R (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_R))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard s and S */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define S (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_S))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard t and T */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define T (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_T))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard u and U */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define U (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_U))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard v and V */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define V (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_V))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard w and W */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define W (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_W))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard x and X */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define X (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_X))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard y and Y */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define Y (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_Y))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard z and Z */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define Z (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_Z))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard 1 and ! (Exclamation) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_1 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_1_AND_EXCLAMATION))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N1 (NUMBER_1)
|
|
|
|
#define NUM_1 (NUMBER_1) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard ! (Exclamation) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define EXCLAMATION (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_1_AND_EXCLAMATION)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define EXCL (EXCLAMATION)
|
|
|
|
#define BANG (EXCLAMATION) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard 2 and @ (At sign) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_2 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_2_AND_AT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N2 (NUMBER_2)
|
|
|
|
#define NUM_2 (NUMBER_2) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard @ (At sign) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define AT_SIGN (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_2_AND_AT)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define AT (AT_SIGN)
|
|
|
|
#define ATSN (AT_SIGN) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard 3 and # (Hash/Number) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_3 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_3_AND_HASH))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N3 (NUMBER_3)
|
|
|
|
#define NUM_3 (NUMBER_3) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard # (Hash/Number) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define HASH (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_3_AND_HASH)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define POUND (HASH)
|
|
|
|
|
|
|
|
/* Keyboard 4 and $ (Dollar) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_4 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_4_AND_DOLLAR))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N4 (NUMBER_4)
|
|
|
|
#define NUM_4 (NUMBER_4) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard $ (Dollar) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define DOLLAR (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_4_AND_DOLLAR)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define DLLR (DOLLAR)
|
|
|
|
|
|
|
|
/* Keyboard 5 and % (Percent) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_5 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_5_AND_PERCENT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N5 (NUMBER_5)
|
|
|
|
#define NUM_5 (NUMBER_5) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard % (Percent) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PERCENT (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_5_AND_PERCENT)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define PRCNT (PERCENT)
|
|
|
|
#define PRCT (PERCENT) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard 6 and ^ (Caret) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_6 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_6_AND_CARET))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N6 (NUMBER_6)
|
|
|
|
#define NUM_6 (NUMBER_6) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard ^ (Caret) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define CARET (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_6_AND_CARET)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define CRRT (CARET) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard 7 and & (Ampersand) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_7 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_7_AND_AMPERSAND))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N7 (NUMBER_7)
|
|
|
|
#define NUM_7 (NUMBER_7) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard & (Ampersand) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define AMPERSAND (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_7_AND_AMPERSAND)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define AMPS (AMPERSAND)
|
|
|
|
|
|
|
|
/* Keyboard 8 and * (Asterisk) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_8 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_8_AND_ASTERISK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N8 (NUMBER_8)
|
|
|
|
#define NUM_8 (NUMBER_8) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard * (Asterisk) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define ASTERISK (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_8_AND_ASTERISK)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define ASTRK (ASTERISK)
|
|
|
|
#define STAR (ASTERISK)
|
|
|
|
|
|
|
|
/* Keyboard 9 and ( (Left Parenthesis) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_9 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_9_AND_LEFT_PARENTHESIS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N9 (NUMBER_9)
|
|
|
|
#define NUM_9 (NUMBER_9) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard ( (Left Parenthesis) */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define LEFT_PARENTHESIS \
|
2020-11-07 07:28:44 +11:00
|
|
|
(LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_9_AND_LEFT_PARENTHESIS)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LPAR (LEFT_PARENTHESIS)
|
|
|
|
#define LPRN (LEFT_PARENTHESIS) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard 0 and ) (Right Parenthesis) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NUMBER_0 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_0_AND_RIGHT_PARENTHESIS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define N0 (NUMBER_0)
|
|
|
|
#define NUM_0 (NUMBER_0) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard ) (Right Parenthesis) */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define RIGHT_PARENTHESIS \
|
2020-11-07 07:28:44 +11:00
|
|
|
(LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_0_AND_RIGHT_PARENTHESIS)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define RPAR (RIGHT_PARENTHESIS)
|
|
|
|
#define RPRN (RIGHT_PARENTHESIS) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Return (Enter) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define RETURN (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_RETURN_ENTER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define ENTER (RETURN)
|
|
|
|
#define RET (RETURN)
|
|
|
|
|
|
|
|
/* Keyboard Escape */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define ESCAPE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_ESCAPE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define ESC (ESCAPE)
|
|
|
|
|
|
|
|
/* Keyboard Backspace */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define BACKSPACE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_DELETE_BACKSPACE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define BSPC (BACKSPACE)
|
|
|
|
#define BKSP (BACKSPACE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Tab */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define TAB (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_TAB))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Space */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SPACE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_SPACEBAR))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define SPC (SPACE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard - and _ (Minus and Underscore) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define MINUS (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_MINUS_AND_UNDERSCORE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard _ (Underscore) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define UNDERSCORE (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_MINUS_AND_UNDERSCORE)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define UNDER (UNDERSCORE)
|
|
|
|
|
|
|
|
/* Keyboard = and + (Equal and Plus) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define EQUAL (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_EQUAL_AND_PLUS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define EQL (EQUAL) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard + (Plus) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PLUS (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_EQUAL_AND_PLUS)))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard [ and { (Left Bracket and Left Brace) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LEFT_BRACKET (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LEFT_BRACKET_AND_LEFT_BRACE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LBKT (LEFT_BRACKET)
|
|
|
|
|
|
|
|
/* Keyboard { (Left Brace) */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define LEFT_BRACE \
|
2020-11-07 07:28:44 +11:00
|
|
|
(LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LEFT_BRACKET_AND_LEFT_BRACE)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LBRC (LEFT_BRACE)
|
|
|
|
#define LCUR (LEFT_BRACE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard ] and } (Right Bracket and Right Brace) */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define RIGHT_BRACKET \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_RIGHT_BRACKET_AND_RIGHT_BRACE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define RBKT (RIGHT_BRACKET)
|
|
|
|
|
|
|
|
/* Keyboard } (Right Brace) */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define RIGHT_BRACE \
|
2020-11-07 07:28:44 +11:00
|
|
|
(LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_RIGHT_BRACKET_AND_RIGHT_BRACE)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define RBRC (RIGHT_BRACE)
|
|
|
|
#define RCUR (RIGHT_BRACE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard \ and | (Backslash and Pipe) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define BACKSLASH (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_BACKSLASH_AND_PIPE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define BSLH (BACKSLASH)
|
|
|
|
|
|
|
|
/* Keyboard | (Pipe) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PIPE (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_BACKSLASH_AND_PIPE)))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Non-US # and ~ (Non-US Hash/Number and Tilde) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define NON_US_HASH (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_NON_US_HASH_AND_TILDE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard ~ (Tilde) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define TILDE2 (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_NON_US_HASH_AND_TILDE)))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard ; and : (Semicolon and Colon) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SEMICOLON (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_SEMICOLON_AND_COLON))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define SEMI (SEMICOLON)
|
|
|
|
#define SCLN (SEMICOLON) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard : (Colon) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define COLON (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_SEMICOLON_AND_COLON)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define COLN (COLON) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard ' and " (Apostrophe and Quote) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SINGLE_QUOTE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_APOSTROPHE_AND_QUOTE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define SQT (SINGLE_QUOTE)
|
|
|
|
#define APOSTROPHE (SINGLE_QUOTE)
|
|
|
|
#define APOS (SINGLE_QUOTE)
|
|
|
|
#define QUOT (SINGLE_QUOTE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard " (Quote) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define DOUBLE_QUOTES (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_APOSTROPHE_AND_QUOTE)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define DQT (DOUBLE_QUOTES)
|
|
|
|
|
|
|
|
/* Keyboard ` and ~ (Grave Accent and Tilde) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define GRAVE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_GRAVE_ACCENT_AND_TILDE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define GRAV (GRAVE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard ~ (Tilde) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define TILDE (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_GRAVE_ACCENT_AND_TILDE)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define TILD (TILDE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard , and < (Comma and Less Than) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define COMMA (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_COMMA_AND_LESS_THAN))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define CMMA (COMMA) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard < (Less Than) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LESS_THAN (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_COMMA_AND_LESS_THAN)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LT (LESS_THAN)
|
|
|
|
#define LABT (LESS_THAN) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard . and > (Period and Greater Than) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PERIOD (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_PERIOD_AND_GREATER_THAN))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define DOT (PERIOD)
|
|
|
|
|
|
|
|
/* Keyboard > (Greater Than) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define GREATER_THAN (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_PERIOD_AND_GREATER_THAN)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define GT (GREATER_THAN)
|
|
|
|
#define RABT (GREATER_THAN) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard / and ? (Forward Slash and Question) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SLASH (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_SLASH_AND_QUESTION_MARK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define FSLH (SLASH)
|
|
|
|
|
|
|
|
/* Keyboard ? (Question) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define QUESTION (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_SLASH_AND_QUESTION_MARK)))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define QMARK (QUESTION)
|
|
|
|
|
|
|
|
/* Keyboard Caps Lock */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define CAPSLOCK (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_CAPS_LOCK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define CAPS (CAPSLOCK)
|
|
|
|
#define CLCK (CAPSLOCK)
|
|
|
|
|
|
|
|
/* Keyboard F1 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F1 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F1))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F2 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F2 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F2))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F3 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F3 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F3))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F4 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F4 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F4))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F5 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F5 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F5))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F6 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F6 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F6))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F7 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F7 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F7))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F8 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F8 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F8))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F9 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F9 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F9))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F10 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F10 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F10))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F11 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F11 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F11))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F12 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F12 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F12))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Print Screen */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PRINTSCREEN (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_PRINTSCREEN))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define PSCRN (PRINTSCREEN)
|
|
|
|
#define PRSC (PRINTSCREEN) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Scroll Lock */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SCROLLLOCK (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_SCROLL_LOCK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define SLCK (SCROLLLOCK)
|
|
|
|
#define SCLK (SCROLLLOCK) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Pause/Break */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PAUSE_BREAK (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_PAUSE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define PAUS (PAUSE_BREAK) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Insert */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INSERT (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INSERT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INS (INSERT)
|
|
|
|
|
|
|
|
/* Keyboard Home */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define HOME (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_HOME))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Page Up */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PAGE_UP (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_PAGEUP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define PG_UP (PAGE_UP)
|
|
|
|
#define PGUP (PAGE_UP) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Delete */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define DELETE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_DELETE_FORWARD))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define DEL (DELETE)
|
|
|
|
|
|
|
|
/* Keyboard End */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define END (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_END))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Page Down */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PAGE_DOWN (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_PAGEDOWN))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define PG_DN (PAGE_DOWN)
|
|
|
|
#define PGDN (PAGE_DOWN) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Right Arrow */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define RIGHT_ARROW (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_RIGHTARROW))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define RIGHT (RIGHT_ARROW)
|
|
|
|
#define RARW (RIGHT_ARROW) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Left Arrow */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LEFT_ARROW (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LEFTARROW))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LEFT (LEFT_ARROW)
|
|
|
|
#define LARW (LEFT_ARROW) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Down Arrow */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define DOWN_ARROW (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_DOWNARROW))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define DOWN (DOWN_ARROW)
|
|
|
|
#define DARW (DOWN_ARROW) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Up Arrow */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define UP_ARROW (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_UPARROW))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define UP (UP_ARROW)
|
|
|
|
#define UARW (UP_ARROW) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keypad Numlock and Clear */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMLOCK (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_NUM_LOCK_AND_CLEAR))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_NUM (KP_NUMLOCK)
|
|
|
|
#define KP_NLCK (KP_NUMLOCK)
|
|
|
|
|
|
|
|
/* Keypad Clear */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define CLEAR2 (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_NUM_LOCK_AND_CLEAR)))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keypad / (Slash/Divide) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_DIVIDE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_SLASH))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_SLASH (KP_DIVIDE)
|
|
|
|
#define KDIV (KP_DIVIDE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keypad * (Multiply) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_MULTIPLY (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_ASTERISK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_ASTERISK (KP_MULTIPLY)
|
|
|
|
#define KMLT (KP_MULTIPLY) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keypad - (Minus) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_MINUS (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_MINUS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_SUBTRACT (KP_MINUS)
|
|
|
|
#define KMIN (KP_MINUS) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keypad + (Plus) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_PLUS (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_PLUS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KPLS (KP_PLUS) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keypad Enter */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_ENTER (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_ENTER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keypad 1 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_1 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_1_AND_END))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N1 (KP_NUMBER_1)
|
|
|
|
|
|
|
|
/* Keypad 2 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_2 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_2_AND_DOWN_ARROW))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N2 (KP_NUMBER_2)
|
|
|
|
|
|
|
|
/* Keypad 3 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_3 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_3_AND_PAGEDN))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N3 (KP_NUMBER_3)
|
|
|
|
|
|
|
|
/* Keypad 4 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_4 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_4_AND_LEFT_ARROW))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N4 (KP_NUMBER_4)
|
|
|
|
|
|
|
|
/* Keypad 5 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_5 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_5))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N5 (KP_NUMBER_5)
|
|
|
|
|
|
|
|
/* Keypad 6 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_6 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_6_AND_RIGHT_ARROW))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N6 (KP_NUMBER_6)
|
|
|
|
|
|
|
|
/* Keypad 7 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_7 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_7_AND_HOME))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N7 (KP_NUMBER_7)
|
|
|
|
|
|
|
|
/* Keypad 8 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_8 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_8_AND_UP_ARROW))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N8 (KP_NUMBER_8)
|
|
|
|
|
|
|
|
/* Keypad 9 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_9 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_9_AND_PAGEUP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N9 (KP_NUMBER_9)
|
|
|
|
|
|
|
|
/* Keypad 0 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_NUMBER_0 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_0_AND_INSERT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_N0 (KP_NUMBER_0)
|
|
|
|
|
|
|
|
/* Keypad . (Dot) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_DOT (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_PERIOD_AND_DELETE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Non-US \ and | (Non-us Backslash and Pipe) */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define NON_US_BACKSLASH \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_NON_US_BACKSLASH_AND_PIPE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define NON_US_BSLH (NON_US_BACKSLASH)
|
|
|
|
|
|
|
|
/* Keyboard Pipe */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PIPE2 (LS(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_NON_US_BACKSLASH_AND_PIPE)))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
2020-11-05 05:50:41 +11:00
|
|
|
/* Keyboard Application (Context Menu) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_APPLICATION (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_APPLICATION))
|
2020-11-05 05:50:41 +11:00
|
|
|
#define K_APP (K_APPLICATION)
|
|
|
|
#define K_CONTEXT_MENU (K_APPLICATION)
|
|
|
|
#define K_CMENU (K_APPLICATION)
|
|
|
|
#define GUI (K_APPLICATION) // WARNING: DEPRECATED (DO NOT USE)
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Power */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_POWER (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_POWER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_PWR (K_POWER)
|
|
|
|
|
|
|
|
/* Keypad = (Equal) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_EQUAL (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_EQUAL))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F13 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F13 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F13))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F14 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F14 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F14))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F15 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F15 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F15))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F16 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F16 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F16))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F17 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F17 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F17))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F18 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F18 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F18))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F19 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F19 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F19))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F20 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F20 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F20))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F21 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F21 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F21))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F22 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F22 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F22))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F23 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F23 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F23))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard F24 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define F24 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_F24))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Execute */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_EXECUTE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_EXECUTE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_EXEC (K_EXECUTE)
|
|
|
|
|
|
|
|
/* Keyboard Help */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_HELP (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_HELP))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Menu */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_MENU (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_MENU))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Select */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_SELECT (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_SELECT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Stop */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_STOP (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_STOP))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Again */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_AGAIN (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_AGAIN))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_REDO (K_AGAIN)
|
|
|
|
|
|
|
|
/* Keyboard Undo */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_UNDO (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_UNDO))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define UNDO (K_UNDO) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Cut */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_CUT (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_CUT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define CUT (K_CUT) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Copy */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_COPY (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_COPY))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define COPY (K_COPY) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Paste */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_PASTE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_PASTE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define PSTE (K_PASTE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Find */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_FIND (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_FIND))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Mute */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_MUTE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_MUTE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Volume Up */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_VOLUME_UP (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_VOLUME_UP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_VOL_UP (K_VOLUME_UP)
|
|
|
|
#define VOLU (K_VOLUME_UP) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Volume Down */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_VOLUME_DOWN (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_VOLUME_DOWN))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_VOL_DN (K_VOLUME_DOWN)
|
|
|
|
#define VOLD (K_VOLUME_DOWN) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Locking Caps Lock */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LOCKING_CAPS (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LOCKING_CAPS_LOCK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LCAPS (LOCKING_CAPS)
|
|
|
|
|
|
|
|
/* Keyboard Locking Num Lock */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LOCKING_NUM (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LOCKING_NUM_LOCK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LNLCK (LOCKING_NUM)
|
|
|
|
|
|
|
|
/* Keyboard Locking Scroll Lock */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LOCKING_SCROLL (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LOCKING_SCROLL_LOCK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LSLCK (LOCKING_SCROLL)
|
|
|
|
|
|
|
|
/* Keypad , (Comma) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_COMMA (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_COMMA))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keypad = (Equal) AS/400 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_EQUAL_AS400 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_EQUAL_SIGN))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard International 1 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INTERNATIONAL_1 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INTERNATIONAL1))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INT1 (INTERNATIONAL_1)
|
|
|
|
#define INT_RO (INTERNATIONAL_1)
|
|
|
|
|
|
|
|
/* Keyboard International 2 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INTERNATIONAL_2 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INTERNATIONAL2))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INT2 (INTERNATIONAL_2)
|
|
|
|
#define INT_KATAKANAHIRAGANA (INTERNATIONAL_2)
|
|
|
|
#define INT_KANA (INTERNATIONAL_2)
|
|
|
|
|
|
|
|
/* Keyboard International 3 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INTERNATIONAL_3 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INTERNATIONAL3))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INT3 (INTERNATIONAL_3)
|
|
|
|
#define INT_YEN (INTERNATIONAL_3)
|
|
|
|
|
|
|
|
/* Keyboard International 4 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INTERNATIONAL_4 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INTERNATIONAL4))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INT4 (INTERNATIONAL_4)
|
|
|
|
#define INT_HENKAN (INTERNATIONAL_4)
|
|
|
|
|
|
|
|
/* Keyboard International 5 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INTERNATIONAL_5 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INTERNATIONAL5))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INT5 (INTERNATIONAL_5)
|
|
|
|
#define INT_MUHENKAN (INTERNATIONAL_5)
|
|
|
|
|
|
|
|
/* Keyboard International 6 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INTERNATIONAL_6 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INTERNATIONAL6))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INT6 (INTERNATIONAL_6)
|
|
|
|
#define INT_KPJPCOMMA (INTERNATIONAL_6)
|
|
|
|
|
|
|
|
/* Keyboard International 7 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INTERNATIONAL_7 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INTERNATIONAL7))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INT7 (INTERNATIONAL_7)
|
|
|
|
|
|
|
|
/* Keyboard International 8 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INTERNATIONAL_8 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INTERNATIONAL8))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INT8 (INTERNATIONAL_8)
|
|
|
|
|
|
|
|
/* Keyboard International 9 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define INTERNATIONAL_9 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_INTERNATIONAL9))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define INT9 (INTERNATIONAL_9)
|
|
|
|
|
|
|
|
/* Keyboard Language 1 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LANGUAGE_1 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LANG1))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LANG1 (LANGUAGE_1)
|
|
|
|
#define LANG_HANGEUL (LANGUAGE_1)
|
|
|
|
|
|
|
|
/* Keyboard Language 2 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LANGUAGE_2 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LANG2))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LANG2 (LANGUAGE_2)
|
|
|
|
#define LANG_HANJA (LANGUAGE_2)
|
|
|
|
|
|
|
|
/* Keyboard Language 3 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LANGUAGE_3 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LANG3))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LANG3 (LANGUAGE_3)
|
|
|
|
#define LANG_KATAKANA (LANGUAGE_3)
|
|
|
|
|
|
|
|
/* Keyboard Language 4 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LANGUAGE_4 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LANG4))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LANG4 (LANGUAGE_4)
|
|
|
|
#define LANG_HIRAGANA (LANGUAGE_4)
|
|
|
|
|
|
|
|
/* Keyboard Language 5 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LANGUAGE_5 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LANG5))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LANG5 (LANGUAGE_5)
|
|
|
|
#define LANG_ZENKAKUHANKAKU (LANGUAGE_5)
|
|
|
|
|
|
|
|
/* Keyboard Language 6 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LANGUAGE_6 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LANG6))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LANG6 (LANGUAGE_6)
|
|
|
|
|
|
|
|
/* Keyboard Language 7 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LANGUAGE_7 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LANG7))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LANG7 (LANGUAGE_7)
|
|
|
|
|
|
|
|
/* Keyboard Language 8 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LANGUAGE_8 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LANG8))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LANG8 (LANGUAGE_8)
|
|
|
|
|
|
|
|
/* Keyboard Language 9 */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LANGUAGE_9 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LANG9))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LANG9 (LANGUAGE_9)
|
|
|
|
|
|
|
|
/* Keyboard Alternate Erase */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define ALT_ERASE (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_ALTERNATE_ERASE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard SysReq/Attention */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SYSREQ (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_SYSREQ_ATTENTION))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define ATTENTION (SYSREQ)
|
|
|
|
|
|
|
|
/* Keyboard Cancel */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_CANCEL (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_CANCEL))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Clear */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define CLEAR (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_CLEAR))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Prior */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define PRIOR (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_PRIOR))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Return */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define RETURN2 (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_RETURN))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define RET2 (RETURN2)
|
|
|
|
|
|
|
|
/* Keyboard Separator */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define SEPARATOR (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_SEPARATOR))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Out */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define OUT (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_OUT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Oper */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define OPER (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_OPER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Clear/Again */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define CLEAR_AGAIN (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_CLEAR_AGAIN))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard CrSel/Props */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define CRSEL (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_CRSEL_PROPS))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard ExSel */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define EXSEL (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_EXSEL))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Currency Unit */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define CURU \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_CURRENCY_UNIT)) // WARNING: DEPRECATED (DO NOT USE)
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keypad ( (Left Parenthesis) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_LEFT_PARENTHESIS (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_LEFT_PARENTHESIS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_LPAR (KP_LEFT_PARENTHESIS)
|
|
|
|
|
|
|
|
/* Keypad ) (Right Parenthesis) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_RIGHT_PARENTHESIS (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_RIGHT_PARENTHESIS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define KP_RPAR (KP_RIGHT_PARENTHESIS)
|
|
|
|
|
|
|
|
/* Keypad Space */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define KSPC \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_SPACE)) // WARNING: DEPRECATED (DO NOT USE)
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keypad Clear */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define KP_CLEAR (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYPAD_CLEAR))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Left Control */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LEFT_CONTROL (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LEFTCONTROL))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LCTRL (LEFT_CONTROL)
|
|
|
|
#define LCTL (LEFT_CONTROL) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Left Shift */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LEFT_SHIFT (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LEFTSHIFT))
|
2021-05-07 06:42:03 +10:00
|
|
|
#define LSHIFT (LEFT_SHIFT)
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LSHFT (LEFT_SHIFT)
|
|
|
|
#define LSFT (LEFT_SHIFT) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Left Alt */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LEFT_ALT (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LEFTALT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LALT (LEFT_ALT)
|
|
|
|
|
|
|
|
/* Keyboard Left GUI (Windows / Command / Meta) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define LEFT_GUI (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_LEFT_GUI))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define LGUI (LEFT_GUI)
|
|
|
|
#define LEFT_WIN (LEFT_GUI)
|
|
|
|
#define LWIN (LEFT_GUI)
|
|
|
|
#define LEFT_COMMAND (LEFT_GUI)
|
|
|
|
#define LCMD (LEFT_GUI)
|
|
|
|
#define LEFT_META (LEFT_GUI)
|
|
|
|
#define LMETA (LEFT_GUI)
|
|
|
|
|
|
|
|
/* Keyboard Right Control */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define RIGHT_CONTROL (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_RIGHTCONTROL))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define RCTRL (RIGHT_CONTROL)
|
|
|
|
#define RCTL (RIGHT_CONTROL) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Right Shift */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define RIGHT_SHIFT (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_RIGHTSHIFT))
|
2021-05-07 06:42:03 +10:00
|
|
|
#define RSHIFT (RIGHT_SHIFT)
|
2020-11-04 03:57:13 +11:00
|
|
|
#define RSHFT (RIGHT_SHIFT)
|
|
|
|
#define RSFT (RIGHT_SHIFT) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Keyboard Right Alt */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define RIGHT_ALT (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_RIGHTALT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define RALT (RIGHT_ALT)
|
|
|
|
|
|
|
|
/* Keyboard Right GUI (Windows / Command / Meta) */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define RIGHT_GUI (HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_RIGHT_GUI))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define RGUI (RIGHT_GUI)
|
|
|
|
#define RIGHT_WIN (RIGHT_GUI)
|
|
|
|
#define RWIN (RIGHT_GUI)
|
|
|
|
#define RIGHT_COMMAND (RIGHT_GUI)
|
|
|
|
#define RCMD (RIGHT_GUI)
|
|
|
|
#define RIGHT_META (RIGHT_GUI)
|
|
|
|
#define RMETA (RIGHT_GUI)
|
|
|
|
|
|
|
|
/* Keyboard Play/Pause */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_PLAY_PAUSE (HID_USAGE(HID_USAGE_KEY, 0xE8))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_PP (K_PLAY_PAUSE)
|
|
|
|
|
|
|
|
/* Keyboard Stop */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_STOP2 (HID_USAGE(HID_USAGE_KEY, 0xE9))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Previous */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_PREVIOUS (HID_USAGE(HID_USAGE_KEY, 0xEA))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_PREV (K_PREVIOUS)
|
|
|
|
|
|
|
|
/* Keyboard Next */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_NEXT (HID_USAGE(HID_USAGE_KEY, 0xEB))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Eject */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_EJECT (HID_USAGE(HID_USAGE_KEY, 0xEC))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Volume Up */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_VOLUME_UP2 (HID_USAGE(HID_USAGE_KEY, 0xED))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_VOL_UP2 (K_VOLUME_UP2)
|
|
|
|
|
|
|
|
/* Keyboard Volume Down */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_VOLUME_DOWN2 (HID_USAGE(HID_USAGE_KEY, 0xEE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_VOL_DN2 (K_VOLUME_DOWN2)
|
|
|
|
|
|
|
|
/* Keyboard Mute */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_MUTE2 (HID_USAGE(HID_USAGE_KEY, 0xEF))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard WWW */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_WWW (HID_USAGE(HID_USAGE_KEY, 0xF0))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Back */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_BACK (HID_USAGE(HID_USAGE_KEY, 0xF1))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Forward */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_FORWARD (HID_USAGE(HID_USAGE_KEY, 0xF2))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Stop */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_STOP3 (HID_USAGE(HID_USAGE_KEY, 0xF3))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Find */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_FIND2 (HID_USAGE(HID_USAGE_KEY, 0xF4))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Scroll Up */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_SCROLL_UP (HID_USAGE(HID_USAGE_KEY, 0xF5))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Scroll Down */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_SCROLL_DOWN (HID_USAGE(HID_USAGE_KEY, 0xF6))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Edit */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_EDIT (HID_USAGE(HID_USAGE_KEY, 0xF7))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Sleep */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_SLEEP (HID_USAGE(HID_USAGE_KEY, 0xF8))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Lock */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_LOCK (HID_USAGE(HID_USAGE_KEY, 0xF9))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_SCREENSAVER (K_LOCK)
|
|
|
|
#define K_COFFEE (K_LOCK)
|
|
|
|
|
|
|
|
/* Keyboard Refresh */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_REFRESH (HID_USAGE(HID_USAGE_KEY, 0xFA))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Keyboard Calculator */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define K_CALCULATOR (HID_USAGE(HID_USAGE_KEY, 0xFB))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define K_CALC (K_CALCULATOR)
|
|
|
|
|
|
|
|
/* Consumer Power */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_POWER (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_POWER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_PWR (C_POWER)
|
|
|
|
|
|
|
|
/* Consumer Reset */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_RESET (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_RESET))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Sleep */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_SLEEP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_SLEEP))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Sleep Mode */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_SLEEP_MODE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_SLEEP_MODE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Menu */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MENU (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MENU))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Menu Pick */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MENU_PICK (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MENU_PICK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_MENU_SELECT (C_MENU_PICK)
|
|
|
|
|
|
|
|
/* Consumer Menu Up */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MENU_UP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MENU_UP))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Menu Down */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MENU_DOWN (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MENU_DOWN))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Menu Left */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MENU_LEFT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MENU_LEFT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Menu Right */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MENU_RIGHT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MENU_RIGHT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Menu Escape */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MENU_ESCAPE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MENU_ESCAPE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_MENU_ESC (C_MENU_ESCAPE)
|
|
|
|
|
|
|
|
/* Consumer Menu Value Increase */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MENU_INCREASE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MENU_VALUE_INCREASE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_MENU_INC (C_MENU_INCREASE)
|
|
|
|
|
|
|
|
/* Consumer Menu Value Decrease */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MENU_DECREASE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MENU_VALUE_DECREASE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_MENU_DEC (C_MENU_DECREASE)
|
|
|
|
|
|
|
|
/* Consumer Data On Screen */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_DATA_ON_SCREEN (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_DATA_ON_SCREEN))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Closed Caption */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_CAPTIONS (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_CLOSED_CAPTION))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_SUBTITILES (C_CAPTIONS)
|
|
|
|
|
|
|
|
/* Consumer Snapshot */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_SNAPSHOT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_SNAPSHOT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Picture-in-Picture Toggle */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_PIP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_PICTURE_IN_PICTURE_TOGGLE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Red Menu Button */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_RED_BUTTON (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_RED_MENU_BUTTON))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_RED (C_RED_BUTTON)
|
|
|
|
|
|
|
|
/* Consumer Green Menu Button */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_GREEN_BUTTON (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_GREEN_MENU_BUTTON))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_GREEN (C_GREEN_BUTTON)
|
|
|
|
|
|
|
|
/* Consumer Blue Menu Button */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_BLUE_BUTTON (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_BLUE_MENU_BUTTON))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_BLUE (C_BLUE_BUTTON)
|
|
|
|
|
|
|
|
/* Consumer Yellow Menu Button */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_YELLOW_BUTTON (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_YELLOW_MENU_BUTTON))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_YELLOW (C_YELLOW_BUTTON)
|
|
|
|
|
|
|
|
/* Consumer Aspect */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_ASPECT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_ASPECT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Display Brightness Increment */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_BRIGHTNESS_INC \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_DISPLAY_BRIGHTNESS_INCREMENT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_BRI_INC (C_BRIGHTNESS_INC)
|
|
|
|
#define C_BRI_UP (C_BRIGHTNESS_INC)
|
|
|
|
|
|
|
|
/* Consumer Display Brightness Decrement */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_BRIGHTNESS_DEC \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_DISPLAY_BRIGHTNESS_DECREMENT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_BRI_DEC (C_BRIGHTNESS_DEC)
|
|
|
|
#define C_BRI_DN (C_BRIGHTNESS_DEC)
|
|
|
|
|
|
|
|
/* Consumer Display Backlight Toggle */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_BACKLIGHT_TOGGLE \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_DISPLAY_BACKLIGHT_TOGGLE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_BKLT_TOG (C_BACKLIGHT_TOGGLE)
|
|
|
|
|
|
|
|
/* Consumer Display Set Brightness to Minimum */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_BRIGHTNESS_MINIMUM \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_DISPLAY_SET_BRIGHTNESS_TO_MINIMUM))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_BRI_MIN (C_BRIGHTNESS_MINIMUM)
|
|
|
|
|
|
|
|
/* Consumer Display Set Brightness to Maximum */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_BRIGHTNESS_MAXIMUM \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_DISPLAY_SET_BRIGHTNESS_TO_MAXIMUM))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_BRI_MAX (C_BRIGHTNESS_MAXIMUM)
|
|
|
|
|
|
|
|
/* Consumer Display Set Auto Brightness */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_BRIGHTNESS_AUTO \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_DISPLAY_SET_AUTO_BRIGHTNESS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_BRI_AUTO (C_BRIGHTNESS_AUTO)
|
|
|
|
|
|
|
|
/* Consumer Mode Step */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_STEP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MODE_STEP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_MODE_STEP (C_MEDIA_STEP)
|
|
|
|
|
|
|
|
/* Consumer Recall Last */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_RECALL_LAST (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_RECALL_LAST))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_CHAN_LAST (C_RECALL_LAST)
|
|
|
|
|
|
|
|
/* Consumer Media Select Computer */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_COMPUTER (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_COMPUTER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select TV */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_TV (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_TV))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select WWW */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_WWW (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_WWW))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select DVD */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_DVD (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_DVD))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Telephone */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_PHONE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_TELEPHONE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Program Guide */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_GUIDE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_PROGRAM_GUIDE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Video Phone */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_MEDIA_VIDEOPHONE \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_VIDEO_PHONE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Games */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_GAMES (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_GAMES))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Messages */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_MESSAGES (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_MESSAGES))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select CD */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_CD (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_CD))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select VCR */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_VCR (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_VCR))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Tuner */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_TUNER (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_TUNER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Quit */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_QUIT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_QUIT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Help */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_HELP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_HELP))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Tape */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_TAPE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_TAPE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Cable */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_CABLE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_CABLE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Satellite */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_SATELLITE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_SATELLITE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Media Select Home */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_HOME (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MEDIA_SELECT_HOME))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Channel Increment */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_CHANNEL_INC (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_CHANNEL_INCREMENT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_CHAN_INC (C_CHANNEL_INC)
|
|
|
|
|
|
|
|
/* Consumer Channel Decrement */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_CHANNEL_DEC (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_CHANNEL_DECREMENT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_CHAN_DEC (C_CHANNEL_DEC)
|
|
|
|
|
|
|
|
/* Consumer VCR Plus */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MEDIA_VCR_PLUS (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_VCR_PLUS))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Play */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_PLAY (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_PLAY))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Pause */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_PAUSE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_PAUSE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Record */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_RECORD (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_RECORD))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_REC (C_RECORD)
|
|
|
|
|
|
|
|
/* Consumer Fast Forward */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_FAST_FORWARD (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_FAST_FORWARD))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_FF (C_FAST_FORWARD)
|
|
|
|
|
|
|
|
/* Consumer Rewind */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_REWIND (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_REWIND))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_RW (C_REWIND)
|
|
|
|
|
|
|
|
/* Consumer Scan Next Track */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_NEXT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_SCAN_NEXT_TRACK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define M_NEXT (C_NEXT) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Consumer Scan Previous Track */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_PREVIOUS (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_SCAN_PREVIOUS_TRACK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_PREV (C_PREVIOUS)
|
|
|
|
#define M_PREV (C_PREVIOUS) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Consumer Stop */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_STOP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_STOP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define M_STOP (C_STOP) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Consumer Eject */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_EJECT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_EJECT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define M_EJCT (C_EJECT) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Consumer Random Play */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_RANDOM_PLAY (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_RANDOM_PLAY))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_SHUFFLE (C_RANDOM_PLAY)
|
|
|
|
|
|
|
|
/* Consumer Repeat */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_REPEAT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_REPEAT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Slow Tracking */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_SLOW_TRACKING (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_SLOW_TRACKING))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_SLOW2 (C_SLOW_TRACKING)
|
|
|
|
|
|
|
|
/* Consumer Stop/Eject */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_STOP_EJECT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_STOP_EJECT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Play/Pause */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_PLAY_PAUSE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_PLAY_PAUSE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_PP (C_PLAY_PAUSE)
|
|
|
|
#define M_PLAY (C_PLAY_PAUSE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Consumer Voice Command */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_VOICE_COMMAND (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_VOICE_COMMAND))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Mute */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_MUTE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_MUTE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define M_MUTE (C_MUTE) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Consumer Bass Boost */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_BASS_BOOST (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_BASS_BOOST))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Volume Increment */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_VOLUME_UP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_VOLUME_INCREMENT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_VOL_UP (C_VOLUME_UP)
|
|
|
|
#define M_VOLU (C_VOLUME_UP) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Consumer Volume Decrement */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_VOLUME_DOWN (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_VOLUME_DECREMENT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_VOL_DN (C_VOLUME_DOWN)
|
|
|
|
#define M_VOLD (C_VOLUME_DOWN) // WARNING: DEPRECATED (DO NOT USE)
|
|
|
|
|
|
|
|
/* Consumer Slow */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_SLOW (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_SLOW))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Alternate Audio Increment */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_ALTERNATE_AUDIO_INCREMENT \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_ALTERNATE_AUDIO_INCREMENT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_ALT_AUDIO_INC (C_ALTERNATE_AUDIO_INCREMENT)
|
|
|
|
|
|
|
|
/* Consumer AL Consumer Control Configuration */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_AL_CCC \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_CONSUMER_CONTROL_CONFIGURATION))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Word Processor */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_WORD (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_WORD_PROCESSOR))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Text Editor */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_TEXT_EDITOR (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_TEXT_EDITOR))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Spreadsheet */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_SPREADSHEET (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_SPREADSHEET))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_SHEET (C_AL_SPREADSHEET)
|
|
|
|
|
|
|
|
/* Consumer AL Graphics Editor */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_GRAPHICS_EDITOR (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_GRAPHICS_EDITOR))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Presentation App */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_PRESENTATION (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_PRESENTATION_APP))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Database App */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_DATABASE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_DATABASE_APP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_DB (C_AL_DATABASE)
|
|
|
|
|
|
|
|
/* Consumer AL Email Reader */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_EMAIL (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_EMAIL_READER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_MAIL (C_AL_EMAIL)
|
|
|
|
|
|
|
|
/* Consumer AL Newsreader */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_NEWS (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_NEWSREADER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Voicemail */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_VOICEMAIL (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_VOICEMAIL))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Contacts/Address Book */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_CONTACTS (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_CONTACTS_ADDRESS_BOOK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_ADDRESS_BOOK (C_AL_CONTACTS)
|
|
|
|
|
|
|
|
/* Consumer AL Calendar/Schedule */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_CALENDAR (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_CALENDAR_SCHEDULE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_CAL (C_AL_CALENDAR)
|
|
|
|
|
|
|
|
/* Consumer AL Task/Project Manager */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_AL_TASK_MANAGER \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_TASK_PROJECT_MANAGER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Log/Journal/Timecard */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_JOURNAL (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_LOG_JOURNAL_TIMECARD))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Checkbook/Finance */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_FINANCE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_CHECKBOOK_FINANCE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Calculator */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_CALCULATOR (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_CALCULATOR))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_CALC (C_AL_CALCULATOR)
|
|
|
|
|
|
|
|
/* Consumer AL A/V Capture/Playback */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_AL_AV_CAPTURE_PLAYBACK \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_A_V_CAPTURE_PLAYBACK))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Local Machine Browser */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_AL_MY_COMPUTER \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_LOCAL_MACHINE_BROWSER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Internet Browser */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_WWW (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_INTERNET_BROWSER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Network Chat */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_NETWORK_CHAT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_NETWORK_CHAT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_CHAT (C_AL_NETWORK_CHAT)
|
|
|
|
|
|
|
|
/* Consumer AL Logoff */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_LOGOFF (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_LOGOFF))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Terminal Lock/Screensaver */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_LOCK (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_TERMINAL_LOCK_SCREENSAVER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_SCREENSAVER (C_AL_LOCK)
|
|
|
|
#define C_AL_COFFEE (C_AL_LOCK)
|
|
|
|
|
|
|
|
/* Consumer AL Control Panel */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_CONTROL_PANEL (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_CONTROL_PANEL))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Select Task/Application */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_AL_SELECT_TASK \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_SELECT_TASK_APPLICATION))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Next Task/Application */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_NEXT_TASK (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_NEXT_TASK_APPLICATION))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Previous Task/Application */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_AL_PREVIOUS_TASK \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_PREVIOUS_TASK_APPLICATION))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_PREV_TASK (C_AL_PREVIOUS_TASK)
|
|
|
|
|
|
|
|
/* Consumer AL Integrated Help Center */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_HELP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_INTEGRATED_HELP_CENTER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Documents */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_DOCUMENTS (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_DOCUMENTS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_DOCS (C_AL_DOCUMENTS)
|
|
|
|
|
|
|
|
/* Consumer AL Spell Check */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_SPELLCHECK (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_SPELL_CHECK))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_SPELL (C_AL_SPELLCHECK)
|
|
|
|
|
|
|
|
/* Consumer AL Keyboard Layout */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_KEYBOARD_LAYOUT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_KEYBOARD_LAYOUT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL Screen Saver */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_SCREEN_SAVER (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_SCREEN_SAVER))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AL File Browser */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_FILE_BROWSER (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_FILE_BROWSER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_FILES (C_AL_FILE_BROWSER)
|
|
|
|
|
|
|
|
/* Consumer AL Image Browser */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_IMAGE_BROWSER (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_IMAGE_BROWSER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_IMAGES (C_AL_IMAGE_BROWSER)
|
|
|
|
|
|
|
|
/* Consumer AL Audio Browser */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_AUDIO_BROWSER (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_AUDIO_BROWSER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_AUDIO (C_AL_AUDIO_BROWSER)
|
|
|
|
#define C_AL_MUSIC (C_AL_AUDIO_BROWSER)
|
|
|
|
|
|
|
|
/* Consumer AL Movie Browser */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AL_MOVIE_BROWSER (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_MOVIE_BROWSER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_MOVIES (C_AL_MOVIE_BROWSER)
|
|
|
|
|
|
|
|
/* Consumer AL Instant Messaging */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_AL_INSTANT_MESSAGING \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_INSTANT_MESSAGING))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_IM (C_AL_INSTANT_MESSAGING)
|
|
|
|
|
|
|
|
/* Consumer AL OEM Features/Tips/Tutorial Browser */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_AL_OEM_FEATURES \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AL_OEM_FEATURES_TIPS_TUTORIAL_BROWSER))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AL_TIPS (C_AL_OEM_FEATURES)
|
|
|
|
#define C_AL_TUTORIAL (C_AL_OEM_FEATURES)
|
|
|
|
|
|
|
|
/* Consumer AC New */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_NEW (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_NEW))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Open */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_OPEN (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_OPEN))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Close */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_CLOSE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_CLOSE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Exit */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_EXIT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_EXIT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Save */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_SAVE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_SAVE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Print */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_PRINT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_PRINT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Properties */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_PROPERTIES (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_PROPERTIES))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AC_PROPS (C_AC_PROPERTIES)
|
|
|
|
|
|
|
|
/* Consumer AC Undo */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_UNDO (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_UNDO))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Copy */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_COPY (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_COPY))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Cut */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_CUT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_CUT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Paste */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_PASTE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_PASTE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Find */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_FIND (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_FIND))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Search */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_SEARCH (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_SEARCH))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Go To */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_GOTO (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_GO_TO))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Home */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_HOME (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_HOME))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Back */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_BACK (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_BACK))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Forward */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_FORWARD (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_FORWARD))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Stop */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_STOP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_STOP))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Refresh */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_REFRESH (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_REFRESH))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Bookmarks */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_BOOKMARKS (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_BOOKMARKS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AC_FAVORITES (C_AC_BOOKMARKS)
|
|
|
|
#define C_AC_FAVOURITES (C_AC_BOOKMARKS)
|
|
|
|
|
|
|
|
/* Consumer AC Zoom In */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_ZOOM_IN (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_ZOOM_IN))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Zoom Out */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_ZOOM_OUT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_ZOOM_OUT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Zoom */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_ZOOM (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_ZOOM))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC View Toggle */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_VIEW_TOGGLE (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_VIEW_TOGGLE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Scroll Up */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_SCROLL_UP (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_SCROLL_UP))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Scroll Down */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_SCROLL_DOWN (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_SCROLL_DOWN))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Edit */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_EDIT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_EDIT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Cancel */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_CANCEL (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_CANCEL))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Insert Mode */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_INSERT (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_INSERT_MODE))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_AC_INS (C_AC_INSERT)
|
|
|
|
|
|
|
|
/* Consumer AC Delete */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_DEL (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_DELETE))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Redo/Repeat */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_REDO (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_REDO_REPEAT))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Reply */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_REPLY (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_REPLY))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Forward Msg */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_FORWARD_MAIL (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_FORWARD_MSG))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Send */
|
2020-11-07 07:28:44 +11:00
|
|
|
#define C_AC_SEND (HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_SEND))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer AC Desktop Show All Windows */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_AC_DESKTOP_SHOW_ALL_WINDOWS \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_AC_DESKTOP_SHOW_ALL_WINDOWS))
|
2020-11-04 03:57:13 +11:00
|
|
|
|
|
|
|
/* Consumer Keyboard Input Assist Previous */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_KEYBOARD_INPUT_ASSIST_PREVIOUS \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_KEYBOARD_INPUT_ASSIST_PREVIOUS))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_KBIA_PREV (C_KEYBOARD_INPUT_ASSIST_PREVIOUS)
|
|
|
|
|
|
|
|
/* Consumer Keyboard Input Assist Next */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_KEYBOARD_INPUT_ASSIST_NEXT \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_KEYBOARD_INPUT_ASSIST_NEXT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_KBIA_NEXT (C_KEYBOARD_INPUT_ASSIST_NEXT)
|
|
|
|
|
|
|
|
/* Consumer Keyboard Input Assist Previous Group */
|
|
|
|
#define C_KEYBOARD_INPUT_ASSIST_PREVIOUS_GROUP \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_KEYBOARD_INPUT_ASSIST_PREVIOUS_GROUP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_KBIA_PREV_GRP (C_KEYBOARD_INPUT_ASSIST_PREVIOUS_GROUP)
|
|
|
|
|
|
|
|
/* Consumer Keyboard Input Assist Next Group */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_KEYBOARD_INPUT_ASSIST_NEXT_GROUP \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_KEYBOARD_INPUT_ASSIST_NEXT_GROUP))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_KBIA_NEXT_GRP (C_KEYBOARD_INPUT_ASSIST_NEXT_GROUP)
|
|
|
|
|
|
|
|
/* Consumer Keyboard Input Assist Accept */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_KEYBOARD_INPUT_ASSIST_ACCEPT \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_KEYBOARD_INPUT_ASSIST_ACCEPT))
|
2020-11-04 03:57:13 +11:00
|
|
|
#define C_KBIA_ACCEPT (C_KEYBOARD_INPUT_ASSIST_ACCEPT)
|
|
|
|
|
|
|
|
/* Consumer Keyboard Input Assist Cancel */
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_KEYBOARD_INPUT_ASSIST_CANCEL \
|
2020-11-07 07:28:44 +11:00
|
|
|
(HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_KEYBOARD_INPUT_ASSIST_CANCEL))
|
2020-10-26 15:30:24 +11:00
|
|
|
#define C_KBIA_CANCEL (C_KEYBOARD_INPUT_ASSIST_CANCEL)
|