Naveen Neel / shedskin
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hidusage.h Source File

hidusage.h

00001 /*
00002  * hidusage.h
00003  *
00004  * HID usages
00005  *
00006  * This file is part of the w32api package.
00007  *
00008  * Contributors:
00009  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
00010  *
00011  * THIS SOFTWARE IS NOT COPYRIGHTED
00012  *
00013  * This source code is offered for use in the public domain. You may
00014  * use, modify or distribute it freely.
00015  *
00016  * This code is distributed in the hope that it will be useful but
00017  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
00018  * DISCLAIMED. This includes but is not limited to warranties of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00020  *
00021  */
00022 
00023 #ifndef __HIDUSAGE_H
00024 #define __HIDUSAGE_H
00025 
00026 #if __GNUC__ >=3
00027 #pragma GCC system_header
00028 #endif
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 typedef USHORT USAGE, *PUSAGE;
00035 
00036 #define HID_USAGE_GENERIC_POINTER             ((USAGE) 0x01)
00037 #define HID_USAGE_GENERIC_MOUSE               ((USAGE) 0x02)
00038 #define HID_USAGE_GENERIC_JOYSTICK            ((USAGE) 0x04)
00039 #define HID_USAGE_GENERIC_GAMEPAD             ((USAGE) 0x05)
00040 #define HID_USAGE_GENERIC_KEYBOARD            ((USAGE) 0x06)
00041 #define HID_USAGE_GENERIC_KEYPAD              ((USAGE) 0x07)
00042 #define HID_USAGE_GENERIC_SYSTEM_CTL          ((USAGE) 0x80)
00043 #define HID_USAGE_GENERIC_X                   ((USAGE) 0x30)
00044 #define HID_USAGE_GENERIC_Y                   ((USAGE) 0x31)
00045 #define HID_USAGE_GENERIC_Z                   ((USAGE) 0x32)
00046 #define HID_USAGE_GENERIC_RX                  ((USAGE) 0x33)
00047 #define HID_USAGE_GENERIC_RY                  ((USAGE) 0x34)
00048 #define HID_USAGE_GENERIC_RZ                  ((USAGE) 0x35)
00049 #define HID_USAGE_GENERIC_SLIDER              ((USAGE) 0x36)
00050 #define HID_USAGE_GENERIC_DIAL                ((USAGE) 0x37)
00051 #define HID_USAGE_GENERIC_WHEEL               ((USAGE) 0x38)
00052 #define HID_USAGE_GENERIC_HATSWITCH           ((USAGE) 0x39)
00053 #define HID_USAGE_GENERIC_COUNTED_BUFFER      ((USAGE) 0x3A)
00054 #define HID_USAGE_GENERIC_BYTE_COUNT          ((USAGE) 0x3B)
00055 #define HID_USAGE_GENERIC_MOTION_WAKEUP       ((USAGE) 0x3C)
00056 #define HID_USAGE_GENERIC_VX                  ((USAGE) 0x40)
00057 #define HID_USAGE_GENERIC_VY                  ((USAGE) 0x41)
00058 #define HID_USAGE_GENERIC_VZ                  ((USAGE) 0x42)
00059 #define HID_USAGE_GENERIC_VBRX                ((USAGE) 0x43)
00060 #define HID_USAGE_GENERIC_VBRY                ((USAGE) 0x44)
00061 #define HID_USAGE_GENERIC_VBRZ                ((USAGE) 0x45)
00062 #define HID_USAGE_GENERIC_VNO                 ((USAGE) 0x46)
00063 #define HID_USAGE_GENERIC_SYSCTL_POWER        ((USAGE) 0x81)
00064 #define HID_USAGE_GENERIC_SYSCTL_SLEEP        ((USAGE) 0x82)
00065 #define HID_USAGE_GENERIC_SYSCTL_WAKE         ((USAGE) 0x83)
00066 #define HID_USAGE_GENERIC_SYSCTL_CONTEXT_MENU ((USAGE) 0x84)
00067 #define HID_USAGE_GENERIC_SYSCTL_MAIN_MENU    ((USAGE) 0x85)
00068 #define HID_USAGE_GENERIC_SYSCTL_APP_MENU     ((USAGE) 0x86)
00069 #define HID_USAGE_GENERIC_SYSCTL_HELP_MENU    ((USAGE) 0x87)
00070 #define HID_USAGE_GENERIC_SYSCTL_MENU_EXIT    ((USAGE) 0x88)
00071 #define HID_USAGE_GENERIC_SYSCTL_MENU_SELECT  ((USAGE) 0x89)
00072 #define HID_USAGE_GENERIC_SYSCTL_MENU_RIGHT   ((USAGE) 0x8A)
00073 #define HID_USAGE_GENERIC_SYSCTL_MENU_LEFT    ((USAGE) 0x8B)
00074 #define HID_USAGE_GENERIC_SYSCTL_MENU_UP      ((USAGE) 0x8C)
00075 #define HID_USAGE_GENERIC_SYSCTL_MENU_DOWN    ((USAGE) 0x8D)
00076 
00077 #define HID_USAGE_KEYBOARD_NOEVENT        ((USAGE) 0x00)
00078 #define HID_USAGE_KEYBOARD_ROLLOVER       ((USAGE) 0x01)
00079 #define HID_USAGE_KEYBOARD_POSTFAIL       ((USAGE) 0x02)
00080 #define HID_USAGE_KEYBOARD_UNDEFINED      ((USAGE) 0x03)
00081 #define HID_USAGE_KEYBOARD_aA             ((USAGE) 0x04)
00082 #define HID_USAGE_KEYBOARD_zZ             ((USAGE) 0x1D)
00083 #define HID_USAGE_KEYBOARD_ONE            ((USAGE) 0x1E)
00084 #define HID_USAGE_KEYBOARD_ZERO           ((USAGE) 0x27)
00085 #define HID_USAGE_KEYBOARD_LCTRL          ((USAGE) 0xE0)
00086 #define HID_USAGE_KEYBOARD_LSHFT          ((USAGE) 0xE1)
00087 #define HID_USAGE_KEYBOARD_LALT           ((USAGE) 0xE2)
00088 #define HID_USAGE_KEYBOARD_LGUI           ((USAGE) 0xE3)
00089 #define HID_USAGE_KEYBOARD_RCTRL          ((USAGE) 0xE4)
00090 #define HID_USAGE_KEYBOARD_RSHFT          ((USAGE) 0xE5)
00091 #define HID_USAGE_KEYBOARD_RALT           ((USAGE) 0xE6)
00092 #define HID_USAGE_KEYBOARD_RGUI           ((USAGE) 0xE7)
00093 #define HID_USAGE_KEYBOARD_SCROLL_LOCK    ((USAGE) 0x47)
00094 #define HID_USAGE_KEYBOARD_NUM_LOCK       ((USAGE) 0x53)
00095 #define HID_USAGE_KEYBOARD_CAPS_LOCK      ((USAGE) 0x39)
00096 #define HID_USAGE_KEYBOARD_F1             ((USAGE) 0x3A)
00097 #define HID_USAGE_KEYBOARD_F12            ((USAGE) 0x45)
00098 #define HID_USAGE_KEYBOARD_RETURN         ((USAGE) 0x28)
00099 #define HID_USAGE_KEYBOARD_ESCAPE         ((USAGE) 0x29)
00100 #define HID_USAGE_KEYBOARD_DELETE         ((USAGE) 0x2A)
00101 #define HID_USAGE_KEYBOARD_PRINT_SCREEN   ((USAGE) 0x46)
00102 
00103 #define HID_USAGE_LED_NUM_LOCK                  ((USAGE) 0x01)
00104 #define HID_USAGE_LED_CAPS_LOCK                 ((USAGE) 0x02)
00105 #define HID_USAGE_LED_SCROLL_LOCK               ((USAGE) 0x03)
00106 #define HID_USAGE_LED_COMPOSE                   ((USAGE) 0x04)
00107 #define HID_USAGE_LED_KANA                      ((USAGE) 0x05)
00108 #define HID_USAGE_LED_POWER                     ((USAGE) 0x06)
00109 #define HID_USAGE_LED_SHIFT                     ((USAGE) 0x07)
00110 #define HID_USAGE_LED_DO_NOT_DISTURB            ((USAGE) 0x08)
00111 #define HID_USAGE_LED_MUTE                      ((USAGE) 0x09)
00112 #define HID_USAGE_LED_TONE_ENABLE               ((USAGE) 0x0A)
00113 #define HID_USAGE_LED_HIGH_CUT_FILTER           ((USAGE) 0x0B)
00114 #define HID_USAGE_LED_LOW_CUT_FILTER            ((USAGE) 0x0C)
00115 #define HID_USAGE_LED_EQUALIZER_ENABLE          ((USAGE) 0x0D)
00116 #define HID_USAGE_LED_SOUND_FIELD_ON            ((USAGE) 0x0E)
00117 #define HID_USAGE_LED_SURROUND_FIELD_ON         ((USAGE) 0x0F)
00118 #define HID_USAGE_LED_REPEAT                    ((USAGE) 0x10)
00119 #define HID_USAGE_LED_STEREO                    ((USAGE) 0x11)
00120 #define HID_USAGE_LED_SAMPLING_RATE_DETECT      ((USAGE) 0x12)
00121 #define HID_USAGE_LED_SPINNING                  ((USAGE) 0x13)
00122 #define HID_USAGE_LED_CAV                       ((USAGE) 0x14)
00123 #define HID_USAGE_LED_CLV                       ((USAGE) 0x15)
00124 #define HID_USAGE_LED_RECORDING_FORMAT_DET      ((USAGE) 0x16)
00125 #define HID_USAGE_LED_OFF_HOOK                  ((USAGE) 0x17)
00126 #define HID_USAGE_LED_RING                      ((USAGE) 0x18)
00127 #define HID_USAGE_LED_MESSAGE_WAITING           ((USAGE) 0x19)
00128 #define HID_USAGE_LED_DATA_MODE                 ((USAGE) 0x1A)
00129 #define HID_USAGE_LED_BATTERY_OPERATION         ((USAGE) 0x1B)
00130 #define HID_USAGE_LED_BATTERY_OK                ((USAGE) 0x1C)
00131 #define HID_USAGE_LED_BATTERY_LOW               ((USAGE) 0x1D)
00132 #define HID_USAGE_LED_SPEAKER                   ((USAGE) 0x1E)
00133 #define HID_USAGE_LED_HEAD_SET                  ((USAGE) 0x1F)
00134 #define HID_USAGE_LED_HOLD                      ((USAGE) 0x20)
00135 #define HID_USAGE_LED_MICROPHONE                ((USAGE) 0x21)
00136 #define HID_USAGE_LED_COVERAGE                  ((USAGE) 0x22)
00137 #define HID_USAGE_LED_NIGHT_MODE                ((USAGE) 0x23)
00138 #define HID_USAGE_LED_SEND_CALLS                ((USAGE) 0x24)
00139 #define HID_USAGE_LED_CALL_PICKUP               ((USAGE) 0x25)
00140 #define HID_USAGE_LED_CONFERENCE                ((USAGE) 0x26)
00141 #define HID_USAGE_LED_STAND_BY                  ((USAGE) 0x27)
00142 #define HID_USAGE_LED_CAMERA_ON                 ((USAGE) 0x28)
00143 #define HID_USAGE_LED_CAMERA_OFF                ((USAGE) 0x29)
00144 #define HID_USAGE_LED_ON_LINE                   ((USAGE) 0x2A)
00145 #define HID_USAGE_LED_OFF_LINE                  ((USAGE) 0x2B)
00146 #define HID_USAGE_LED_BUSY                      ((USAGE) 0x2C)
00147 #define HID_USAGE_LED_READY                     ((USAGE) 0x2D)
00148 #define HID_USAGE_LED_PAPER_OUT                 ((USAGE) 0x2E)
00149 #define HID_USAGE_LED_PAPER_JAM                 ((USAGE) 0x2F)
00150 #define HID_USAGE_LED_REMOTE                    ((USAGE) 0x30)
00151 #define HID_USAGE_LED_FORWARD                   ((USAGE) 0x31)
00152 #define HID_USAGE_LED_REVERSE                   ((USAGE) 0x32)
00153 #define HID_USAGE_LED_STOP                      ((USAGE) 0x33)
00154 #define HID_USAGE_LED_REWIND                    ((USAGE) 0x34)
00155 #define HID_USAGE_LED_FAST_FORWARD              ((USAGE) 0x35)
00156 #define HID_USAGE_LED_PLAY                      ((USAGE) 0x36)
00157 #define HID_USAGE_LED_PAUSE                     ((USAGE) 0x37)
00158 #define HID_USAGE_LED_RECORD                    ((USAGE) 0x38)
00159 #define HID_USAGE_LED_ERROR                     ((USAGE) 0x39)
00160 #define HID_USAGE_LED_SELECTED_INDICATOR        ((USAGE) 0x3A)
00161 #define HID_USAGE_LED_IN_USE_INDICATOR          ((USAGE) 0x3B)
00162 #define HID_USAGE_LED_MULTI_MODE_INDICATOR      ((USAGE) 0x3C)
00163 #define HID_USAGE_LED_INDICATOR_ON              ((USAGE) 0x3D)
00164 #define HID_USAGE_LED_INDICATOR_FLASH           ((USAGE) 0x3E)
00165 #define HID_USAGE_LED_INDICATOR_SLOW_BLINK      ((USAGE) 0x3F)
00166 #define HID_USAGE_LED_INDICATOR_FAST_BLINK      ((USAGE) 0x40)
00167 #define HID_USAGE_LED_INDICATOR_OFF             ((USAGE) 0x41)
00168 #define HID_USAGE_LED_FLASH_ON_TIME             ((USAGE) 0x42)
00169 #define HID_USAGE_LED_SLOW_BLINK_ON_TIME        ((USAGE) 0x43)
00170 #define HID_USAGE_LED_SLOW_BLINK_OFF_TIME       ((USAGE) 0x44)
00171 #define HID_USAGE_LED_FAST_BLINK_ON_TIME        ((USAGE) 0x45)
00172 #define HID_USAGE_LED_FAST_BLINK_OFF_TIME       ((USAGE) 0x46)
00173 #define HID_USAGE_LED_INDICATOR_COLOR           ((USAGE) 0x47)
00174 #define HID_USAGE_LED_RED                       ((USAGE) 0x48)
00175 #define HID_USAGE_LED_GREEN                     ((USAGE) 0x49)
00176 #define HID_USAGE_LED_AMBER                     ((USAGE) 0x4A)
00177 #define HID_USAGE_LED_GENERIC_INDICATOR         ((USAGE) 0x3B)
00178 
00179 #define HID_USAGE_PAGE_UNDEFINED          ((USAGE) 0x00)
00180 #define HID_USAGE_PAGE_GENERIC            ((USAGE) 0x01)
00181 #define HID_USAGE_PAGE_SIMULATION         ((USAGE) 0x02)
00182 #define HID_USAGE_PAGE_VR                 ((USAGE) 0x03)
00183 #define HID_USAGE_PAGE_SPORT              ((USAGE) 0x04)
00184 #define HID_USAGE_PAGE_GAME               ((USAGE) 0x05)
00185 #define HID_USAGE_PAGE_KEYBOARD           ((USAGE) 0x07)
00186 #define HID_USAGE_PAGE_LED                ((USAGE) 0x08)
00187 #define HID_USAGE_PAGE_BUTTON             ((USAGE) 0x09)
00188 #define HID_USAGE_PAGE_ORDINAL            ((USAGE) 0x0A)
00189 #define HID_USAGE_PAGE_TELEPHONY          ((USAGE) 0x0B)
00190 #define HID_USAGE_PAGE_CONSUMER           ((USAGE) 0x0C)
00191 #define HID_USAGE_PAGE_DIGITIZER          ((USAGE) 0x0D)
00192 #define HID_USAGE_PAGE_UNICODE            ((USAGE) 0x10)
00193 #define HID_USAGE_PAGE_ALPHANUMERIC       ((USAGE) 0x14)
00194 
00195 #define HID_USAGE_TELEPHONY_PHONE               ((USAGE) 0x01)
00196 #define HID_USAGE_TELEPHONY_ANSWERING_MACHINE   ((USAGE) 0x02)
00197 #define HID_USAGE_TELEPHONY_MESSAGE_CONTROLS    ((USAGE) 0x03)
00198 #define HID_USAGE_TELEPHONY_HANDSET             ((USAGE) 0x04)
00199 #define HID_USAGE_TELEPHONY_HEADSET             ((USAGE) 0x05)
00200 #define HID_USAGE_TELEPHONY_KEYPAD              ((USAGE) 0x06)
00201 #define HID_USAGE_TELEPHONY_PROGRAMMABLE_BUTTON ((USAGE) 0x07)
00202 
00203 #define HID_USAGE_SIMULATION_RUDDER       ((USAGE) 0xBA)
00204 #define HID_USAGE_SIMULATION_THROTTLE     ((USAGE) 0xBB)
00205 
00206 #ifdef __cplusplus
00207 }
00208 #endif
00209 
00210 #endif /* __HIDUSAGE_H */