📄 usb hid tabel.txt
字号:
USB HID usage table
USB HID usage table
This usage table lets usbhidctl decode the HID
data correctly for the APC RS/XS1000's.
This work was obtained from riccardo@torrini.org.
Sample output is available both
with
and
without
the table.
Note that the default /usr/share/misc/usb_hid_usages already contains entries for these a Power Device (132 or 0x84) and
a Battery System (133 or 0x85). It is interesting that usbhidctl shows the APC as using 0xff84 and 0xff84 for their
values. The HID Power Devices specification indicates 0x84 and 0x85. There is at least one macro in
/usr/include/dev/usb/usbhid.h which removes the high order bits. Perhaps we need to do that when using the values. Perhaps
this macro:
#define HID_USAGE2(p,u) (((p)
The file is available without HTML formatting
here
.
# $NetBSD: usb_hid_usages,v 1.3 1999/07/02 15:46:53 simonb Exp $
# $FreeBSD: src/share/misc/usb_hid_usages,v 1.1.2.1 2000/07/02 13:13:55 n_hibma Exp $
#
# USB HID usage table
# Syntax:
# - lines that do not start with a white space give the number and name of
# a usage page.
# - lines that start with a white space give the number and name of
# a usage with the last given page.
# If the number is * then the line matches all usages and the name
# is a printf formatting string that will be given the usage number.
#
1 Generic Desktop
0x00 Undefined
0x01 Pointer
0x02 Mouse
0x03 Reserved
0x04 Joystick
0x05 Game Pad
0x06 Keyboard
0x07 Keypad
0x08 Multi-axis Controller
0x30 X
0x31 Y
0x32 Z
0x33 Rx
0x34 Ry
0x35 Rz
0x36 Slider
0x37 Dial
0x38 Wheel
0x39 Hat Switch
0x3A Counted Buffer
0x3B Byte Count
0x3C Motion Wakeup
0x40 Vx
0x41 Vy
0x42 Vz
0x43 Vbrx
0x44 Vbry
0x45 Vbrx
0x46 Vno
0x80 System Control
0x81 System Power Down
0x82 System Sleep
0x83 System Wake Up
0x84 System Context Menu
0x85 System Main Menu
0x86 System App Menu
0x87 System Menu Help
0x88 System Menu Exit
0x89 System Menu Select
0x8A System Menu Right
0x8B System Menu Left
0x8C System Menu Up
0x8D System Menu Down
0x90 D-pad Up
0x91 D-pad Down
0x92 D-pad Right
0x93 D-pad Left
2 Simulation Controls
0x00 Undefined
0x01 Flight Simulation Device
0x02 Automobile Simulation Device
0x03 Tank Simulation Device
0x04 Spaceship Simulation Device
0x05 Submarine Simulation Device
0x06 Sailing Simulation Device
0x07 Motorcycle Simulation Device
0x08 Sports Simulation Device
0x09 Airplane Simulation Device
0x0A Helicopter Simulation Device
0x0B Magic Carpet Simulation Device
0x0C Bicycle
0x20 Flight Control Stick
0x21 Flight Stick
0x22 Cyclic Control
0x23 Cyclic Trim
0x24 Flight Yoke
0x25 Track Control
0x26 Driving Control
0xB0 Aileron
0xB1 Aileron Trim
0xB2 Anti-Torque Control
0xB3 Auto-pilot Enable
0xB4 Chaff Release
0xB5 Collective Control
0xB6 Dive Brake
0xB7 Electronic Counter Measures
0xB8 Elevator
0xB9 Elevator Trim
0xBA Rudder
0xBB Throttle
0xBC Flight Communication
0xBD Flare Release
0xBE Landing Gear
0xBF Toe Brake
0xC0 Trigger
0xC1 Weapons Arm
0xC2 Weapons Select
0xC3 Wing Flaps
0xC4 Accelerator
0xC5 Brake
0xC6 Clutch
0xC7 Shifter
0xC8 Steering
0xC9 Turret Direction
0xCA Barrel Elevation
0xCB Dive Plane
0xCC Ballast
0xCD Bicycle Crank
0xCE Handle Bars
0xCF Front Brake
0xD0 Rear Brake
3 VR Controls
0x00 Unidentified
0x01 Belt
0x02 Body Suit
0x03 Flexor
0x04 Glove
0x05 Head Tracker
0x06 Head Mounted Display
0x07 Hand Tracker
0x08 Oculometer
0x09 Vest
0x0A Animatronic Device
0x20 Stereo Enable
0x21 Display Enable
4 Sports Controls
0x00 Unidentified
0x01 Baseball Bat
0x02 Golf Club
0x03 Rowing Machine
0x04 Treadmill
0x30 Oar
0x31 Slope
0x32 Rate
0x33 Stick Speed
0x34 Stick Face Angle
0x35 Stick Heel/Toe
0x36 Stick Follow Through
0x37 Stick Tempo
0x38 Stick Type
0x39 Stick Height
0x50 Putter
0x51 1 Iron
0x52 2 Iron
0x53 3 Iron
0x54 4 Iron
0x55 5 Iron
0x56 6 Iron
0x57 7 Iron
0x58 8 Iron
0x59 9 Iron
0x5A 10 Iron
0x5B 11 Iron
0x5C Sand Wedge
0x5D Loft Wedge
0x5E Power Wedge
0x5F 1 Wood
0x60 3 Wood
0x61 5 Wood
0x62 7 Wood
0x63 9 Wood
5 Game Controls
0x00 Undefined
0x01 3D Game Controller
0x02 Pinball Device
0x03 Gun Device
0x20 Point of View
0x21 Turn Right/Left
0x22 Pitch Right/Left
0x23 Roll Forward/Backward
0x24 Move Right/Left
0x25 Move Forward/Backward
0x26 Move Up/Down
0x27 Lean Right/Left
0x28 Lean Forward/Backward
0x29 Height of POV
0x2A Flipper
0x2B Secondary Flipper
0x2C Bump
0x2D New Game
0x2E Shoot Ball
0x2F Player
0x30 Gun Bolt
0x31 Gun Clip
0x32 Gun Selector
0x33 Gun Single Shot
0x34 Gun Burst
0x35 Gun Automatic
0x36 Gun Safety
0x37 Gamepad Fire/Jump
0x39 Gamepad Trigger
7 Keyboard
0x00 Reserved (no event indicated)
0x01 Keyboard ErrorRollOver
0x02 Keyboard POSTFail
0x03 Keyboard ErrorUndefined
0x04 Keyboard a and A
0x05 Keyboard b and B
0x06 Keyboard c and C
0x07 Keyboard d and D
0x08 Keyboard e and E
0x09 Keyboard f and F
0x0A Keyboard g and G
0x0B Keyboard h and H
0x0C Keyboard i and I
0x0D Keyboard j and J
0x0E Keyboard k and K
0x0F Keyboard l and L
0x10 Keyboard m and M
0x11 Keyboard n and N
0x12 Keyboard o and O
0x13 Keyboard p and P
0x14 Keyboard q and Q
0x15 Keyboard r and R
0x16 Keyboard s and S
0x17 Keyboard t and T
0x18 Keyboard u and U
0x19 Keyboard v and V
0x1A Keyboard w and W
0x1B Keyboard x and X
0x1C Keyboard y and Y
0x1D Keyboard z and Z
0x1E Keyboard 1 and !
0x1F Keyboard 2 and @
0x20 Keyboard 3 and #
0x21 Keyboard 4 and $
0x22 Keyboard 5 and %
0x23 Keyboard 6 and ^
0x24 Keyboard 7 and &
0x25 Keyboard 8 and *
0x26 Keyboard 9 and (
0x27 Keyboard 0 and )
0x28 Keyboard Return (ENTER)
0x29 Keyboard ESCAPE
0x2A Keyboard DELETE (Backspace)
0x2B Keyboard Tab
0x2C Keyboard Spacebar
0x2D Keyboard - and (underscore)
0x2E Keyboard = and +
0x2F Keyboard [ and {
0x30 Keyboard ] and }
0x31 Keyboard \ and |
0x32 Keyboard Non-US # and ~
0x33 Keyboard ; and :
0x34 Keyboard ' and "
0x35 Keyboard Grave Accent and Tilde
0x36 Keyboard, and
0x38 Keyboard / and ?
0x39 Keyboard Caps Lock
0x3A Keyboard F1
0x3B Keyboard F2
0x3C Keyboard F3
0x3D Keyboard F4
0x3E Keyboard F5
0x3F Keyboard F6
0x40 Keyboard F7
0x41 Keyboard F8
0x42 Keyboard F9
0x43 Keyboard F10
0x44 Keyboard F11
0x45 Keyboard F12
0x46 Keyboard PrintScreen
0x47 Keyboard Scroll Lock
0x48 Keyboard Pause
0x49 Keyboard Insert
0x4A Keyboard Home
0x4B Keyboard PageUp
0x4C Keyboard Delete Forward
0x4D Keyboard End
0x4E Keyboard PageDown
0x4F Keyboard RightArrow
0x50 Keyboard LeftArrow
0x51 Keyboard DownArrow
0x52 Keyboard UpArrow
0x53 Keypad Num Lock and Clear
0x54 Keypad /
0x55 Keypad *
0x56 Keypad -
0x57 Keypad +
0x58 Keypad ENTER
0x59 Keypad 1 and End
0x5A Keypad 2 and Down Arrow
0x5B Keypad 3 and PageDn
0x5C Keypad 4 and Left Arrow
0x5D Keypad 5
0x5E Keypad 6 and Right Arrow
0x5F Keypad 7 and Home
0x60 Keypad 8 and Up Arrow
0x61 Keypad 9 and PageUp
0x62 Keypad 0 and Insert
0x63 Keypad . and Delete
0x64 Keyboard Non-US \ and |
0x65 Keyboard Application
0x66 Keyboard Power
0x67 Keypad =
0x68 Keyboard F13
0x69 Keyboard F14
0x6A Keyboard F15
0x6B Keyboard F16
0x6C Keyboard F17
0x6D Keyboard F18
0x6E Keyboard F19
0x6F Keyboard F20
0x70 Keyboard F21
0x71 Keyboard F22
0x72 Keyboard F23
0x73 Keyboard F24
0x74 Keyboard Execute
0x75 Keyboard Help
0x76 Keyboard Menu
0x77 Keyboard Select
0x78 Keyboard Stop
0x79 Keyboard Again
0x7A Keyboard Undo
0x7B Keyboard Cut
0x7C Keyboard Copy
0x7D Keyboard Paste
0x7E Keyboard Find
0x7F Keyboard Mute
0x80 Keyboard Volume Up
0x81 Keyboard Volume Down
0x82 Keyboard Locking Caps Lock
0x83 Keyboard Locking Num Lock
0x84 Keyboard Locking Scroll Lock
0x85 Keypad Comma
0x86 Keypad Equal Sign
0x87 Keyboard International1
0x88 Keyboard International2
0x89 Keyboard International3
0x8A Keyboard International4
0x8B Keyboard International5
0x8C Keyboard International6
0x8D Keyboard International7
0x8E Keyboard International8
0x8F Keyboard International9
0x90 Keyboard LANG1
0x91 Keyboard LANG2
0x92 Keyboard LANG3
0x93 Keyboard LANG4
0x94 Keyboard LANG5
0x95 Keyboard LANG6
0x96 Keyboard LANG7
0x97 Keyboard LANG8
0x98 Keyboard LANG9
0x99 Keyboard Alternate Erase
0x9A Keyboard SysReq/Attention
0x9B Keyboard Cancel
0x9C Keyboard Clear
0x9D Keyboard Prior
0x9E Keyboard Return
0x9F Keyboard Separator
0xA0 Keyboard Out
0xA1 Keyboard Oper
0xA2 Keyboard Clear/Again
0xA3 Keyboard CrSel/Props
0xA4 Keyboard ExSel
0xE0 Keyboard LeftControl
0xE1 Keyboard LeftShift
0xE2 Keyboard LeftAlt
0xE3 Keyboard Left GUI
0xE4 Keyboard RightControl
0xE5 Keyboard RightShift
0xE6 Keyboard RightAlt
0xE7 Keyboard Right GUI
8 LEDs
0x00 Undefined
0x01 Num Lock
0x02 Caps Lock
0x03 Scroll Lock
0x04 Compose
0x05 Kana
0x06 Power
0x07 Shift
0x08 Do Not Disturb
0x09 Mute
0x0A Tone Enable
0x0B High Cut Filter
0x0C Low Cut Filter
0x0D Equalizer Enable
0x0E Sound Field On
0x0F Surround Field On
0x10 Repeat
0x11 Stereo
0x12 Sampling Rate Detect
0x13 Spinning
0x14 CAV
0x15 CLV
0x16 Recording Format Detect
0x17 Off-Hook
0x18 Ring
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -