Generating a few more usage tables.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/HidUsageTableGameControls.txt Fri Dec 19 18:56:38 2014 +0100
1.3 @@ -0,0 +1,31 @@
1.4 +00 Undefined
1.5 +01 3D Game Controller CA 8.1
1.6 +02 Pinball Device CA 8.2
1.7 +03 Gun Device CA 8.3
1.8 +04-1F Reserved
1.9 +20 Point of View CP 8.1
1.10 +21 Turn Right/Left DV 8.1
1.11 +22 Pitch Forward/Backward DV 8.1
1.12 +23 Roll Right/Left DV 8.1
1.13 +24 Move Right/Left DV 8.1
1.14 +25 Move Forward/Backward DV 8.1
1.15 +26 Move Up/Down DV 8.1
1.16 +27 Lean Right/Left DV 8.1
1.17 +28 Lean Forward/Backward DV 8.1
1.18 +29 Height of POV DV 8.1
1.19 +2A Flipper MC 8.2
1.20 +2B Secondary Flipper MC 8.2
1.21 +2C Bump MC 8.2
1.22 +2D New Game OSC 8.2
1.23 +2E Shoot Ball OSC 8.2
1.24 +2F Player OSC 8.2
1.25 +30 Gun Bolt OOC 8.3
1.26 +31 Gun Clip OOC 8.3
1.27 +32 Gun Selector NAry 8.3
1.28 +33 Gun Single Shot Sel 8.3
1.29 +34 Gun Burst Sel 8.3
1.30 +35 Gun Automatic Sel 8.3
1.31 +36 Gun Safety OOC 8.3
1.32 +37 Gamepad Fire/Jump CL 8.4.1
1.33 +39 Gamepad Trigger CL 8.4.1
1.34 +3A-FFFF Reserved
1.35 \ No newline at end of file
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/HidUsageTableGenericDesktop.txt Fri Dec 19 18:56:38 2014 +0100
2.3 @@ -0,0 +1,75 @@
2.4 +00 Undefined
2.5 +01 Pointer CP 4.1
2.6 +02 Mouse CA 4.1 03 Reserved
2.7 +04 Joystick CA 4.1
2.8 +05 Game Pad CA 4.1
2.9 +06 Keyboard CA 4.1
2.10 +07 Keypad CA 4.1
2.11 +08 Multi-axis Controller CA 4.1
2.12 +09 Tablet PC System Controls CA 4.1
2.13 +0A-2F Reserved
2.14 +30 X DV 4.2
2.15 +31 Y DV 4.2
2.16 +32 Z DV 4.2
2.17 +33 Rx DV 4.2
2.18 +34 Ry DV 4.2
2.19 +35 Rz DV 4.2
2.20 +36 Slider DV 4.3
2.21 +37 Dial DV 4.3
2.22 +38 Wheel DV 4.3
2.23 +39 Hat switch DV 4.3
2.24 +3A Counted Buffer CL 4.6
2.25 +3B Byte Count DV 4.6
2.26 +3C Motion Wakeup OSC 4.3
2.27 +3D Start OOC 4.3
2.28 +3E Select OOC 4.3 3F Reserved
2.29 +40 Vx DV 4.3.1
2.30 +41 Vy DV 4.3.1
2.31 +42 Vz DV 4.3.1
2.32 +43 Vbrx DV 4.3.1
2.33 +44 Vbry DV 4.3.1
2.34 +45 Vbrz DV 4.3.1
2.35 +46 Vno DV 4.3.1
2.36 +47 Feature Notification DV,DF 4.8
2.37 +48 Resolution Multiplier DV
2.38 +49-7F Reserved
2.39 +80 System Control CA 4.5
2.40 +81 System Power Down OSC 4.5
2.41 +82 System Sleep OSC 4.5.1
2.42 +83 System Wake Up OSC 4.5.1
2.43 +84 System Context Menu OSC 4.5
2.44 +85 System Main Menu OSC 4.5
2.45 +86 System App Menu OSC 4.5
2.46 +87 System Menu Help OSC 4.5
2.47 +88 System Menu Exit OSC 4.5
2.48 +89 System Menu Select OSC 4.5
2.49 +8A System Menu Right RTC 4.5
2.50 +8B System Menu Left RTC 4.5
2.51 +8C System Menu Up RTC 4.5
2.52 +8D System Menu Down RTC 4.5
2.53 +8E System Cold Restart OSC 4.5.1
2.54 +8F System Warm Restart OSC 4.5.1
2.55 +90 D-pad Up OOC 4.7
2.56 +91 D-pad Down OOC 4.7
2.57 +92 D-pad Right OOC 4.7
2.58 +93 D-pad Left OOC 4.7
2.59 +94-9F Reserved
2.60 +A0 System Dock OSC 4.5.1
2.61 +A1 System Undock OSC 4.5.1
2.62 +A2 System Setup OSC 4.5.1
2.63 +A3 System Break OSC 4.9
2.64 +A4 System Debugger Break OSC 4.9
2.65 +A5 Application Break OSC 4.9
2.66 +A6 Application Debugger Break OSC 4.9
2.67 +A7 System Speaker Mute OSC 4.5.1
2.68 +A8 System Hibernate OSC 4.5.1
2.69 +A9-AF Reserved
2.70 +B0 System Display Invert OSC 4.10
2.71 +B1 System Display Internal OSC 4.10
2.72 +B2 System Display External OSC 4.10
2.73 +B3 System Display Both OSC 4.10
2.74 +B4 System Display Dual OSC 4.10
2.75 +B5 System Display Toggle Int/Ext OSC 4.10
2.76 +B6 System Display Swap Primary/Secondary OSC 4.10
2.77 +B7 System Display LCD Autoscale OSC 4.10
2.78 +B8-FFFF Reserved
2.79 \ No newline at end of file
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/HidUsageTableSimulationControls.txt Fri Dec 19 18:56:38 2014 +0100
3.3 @@ -0,0 +1,55 @@
3.4 +00 Undefined
3.5 +01 Flight Simulation Device CA 5.2
3.6 +02 Automobile Simulation Device CA 5.3
3.7 +03 Tank Simulation Device CA 5.4
3.8 +04 Spaceship Simulation Device CA 5.2
3.9 +05 Submarine Simulation Device CA 5.5
3.10 +06 Sailing Simulation Device CA 5.5
3.11 +07 Motorcycle Simulation Device CA 5.6
3.12 +08 Sports Simulation Device CA 5.1
3.13 +09 Airplane Simulation Device CA 5.2
3.14 +0A Helicopter Simulation Device CA 5.2
3.15 +0B Magic Carpet Simulation Device CA 5.7
3.16 +0C Bicycle Simulation Device CA 5.6
3.17 +0D – 1F Reserved
3.18 +20 Flight Control Stick CA 5.2
3.19 +21 Flight Stick CA 5.2
3.20 +22 Cyclic Control CP 5.2
3.21 +23 Cyclic Trim CP 5.2
3.22 +24 Flight Yoke CA 5.2
3.23 +25 Track Control CP 5.4
3.24 +26 –AF Reserved
3.25 +B0 Aileron DV 5.2
3.26 +B1 Aileron Trim DV 5.2
3.27 +B2 Anti-Torque Control DV 5.2
3.28 +B3 Autopilot Enable OOC 5.2
3.29 +B4 Chaff Release OSC 5.2
3.30 +B5 Collective Control DV 5.2
3.31 +B6 Dive Brake DV 5.2
3.32 +B7 Electronic Countermeasures OOC 5.2
3.33 +B8 Elevator DV 5.2
3.34 +B9 Elevator Trim DV 5.2
3.35 +BA Rudder DV 5.2
3.36 +BB Throttle DV 5.2
3.37 +BC Flight Communications OOC 5.2
3.38 +BD Flare Release OSC 5.2
3.39 +BE Landing Gear OOC 5.2
3.40 +BF Toe Brake DV 5.2
3.41 +C0 Trigger MC 5.2
3.42 +C1 Weapons Arm OOC 5.2
3.43 +C2 Weapons Select OSC 5.2
3.44 +C3 Wing Flaps DV 5.2
3.45 +C4 Accelerator DV 5.3
3.46 +C5 Brake DV 5.3
3.47 +C6 Clutch DV 5.3
3.48 +C7 Shifter DV 5.3
3.49 +C8 Steering DV 5.3
3.50 +C9 Turret Direction DV 5.4
3.51 +CA Barrel Elevation DV 5.4
3.52 +CB Dive Plane DV 5.5
3.53 +CC Ballast DV 5.5
3.54 +CD Bicycle Crank DV 5.6
3.55 +CE Handle Bars DV 5.6
3.56 +CF Front Brake DV 5.6
3.57 +D0 Rear Brake DV 5.6
3.58 +D1-FFFF Reserved
3.59 \ No newline at end of file
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/HidUsageTableTelephonyDevice.txt Fri Dec 19 18:56:38 2014 +0100
4.3 @@ -0,0 +1,72 @@
4.4 +00 Unassigned
4.5 +01 Phone CA 14.1
4.6 +02 Answering Machine CA 14.1
4.7 +03 Message Controls CL 14.1
4.8 +04 Handset CL 14.1
4.9 +05 Headset CL 14.1
4.10 +06 Telephony Key Pad NAry 14.2
4.11 +07 Programmable Button NAry 14.2
4.12 +08-1F Reserved
4.13 +20 Hook Switch OOC 14.3
4.14 +21 Flash MC 14.3
4.15 +22 Feature OSC 14.3
4.16 +23 Hold OOC 14.3
4.17 +24 Redial OSC 14.3
4.18 +25 Transfer OSC 14.3
4.19 +26 Drop OSC 14.3
4.20 +27 Park OOC 14.3
4.21 +28 Forward Calls OOC 14.3
4.22 +29 Alternate Function MC 14.3
4.23 +2A Line OSC, NAry 14.3
4.24 +2B Speaker Phone OOC 14.3
4.25 +2C Conference OOC 14.3
4.26 +2D Ring Enable OOC 14.3
4.27 +2E Ring Select OSC 14.3
4.28 +2F Phone Mute OOC 14.3
4.29 +30 Caller ID MC 14.3
4.30 +31 Send OOC 14.3
4.31 +32-4F Reserved
4.32 +50 Speed Dial OSC 14.4
4.33 +51 Store Number OSC 14.4
4.34 +52 Recall Number OSC 14.4
4.35 +53 Phone Directory OOC 14.4
4.36 +54-6F Reserved
4.37 +70 Voice Mail OOC 14.5
4.38 +71 Screen Calls OOC 14.5
4.39 +72 Do Not Disturb OOC 14.5
4.40 +73 Message OSC 14.5
4.41 +74 Answer On/Off OOC 14.5
4.42 +75-8F Reserved
4.43 +90 Inside Dial Tone MC 14.6
4.44 +91 Outside Dial Tone MC 14.6
4.45 +92 Inside Ring Tone MC 14.6
4.46 +93 Outside Ring Tone MC 14.6
4.47 +94 Priority Ring Tone MC 14.6
4.48 +95 Inside Ringback MC 14.6
4.49 +96 Priority Ringback MC 14.6
4.50 +97 Line Busy Tone MC 14.6
4.51 +98 Reorder Tone MC 14.6
4.52 +99 Call Waiting Tone MC 14.6
4.53 +9A Confirmation Tone 1 MC 14.6
4.54 +9B Confirmation Tone 2 MC 14.6
4.55 +9C Tones Off OOC 14.6
4.56 +9D Outside Ringback MC 14.6
4.57 +9E Ringer OOC 14.6
4.58 +9E-AF Reserved
4.59 +B0 Phone Key 0 Sel 14.2
4.60 +B1 Phone Key 1 Sel 14.2
4.61 +B2 Phone Key 2 Sel 14.2
4.62 +B3 Phone Key 3 Sel 14.2
4.63 +B4 Phone Key 4 Sel 14.2
4.64 +B5 Phone Key 5 Sel 14.2
4.65 +B6 Phone Key 6 Sel 14.2
4.66 +B7 Phone Key 7 Sel 14.2
4.67 +B8 Phone Key 8 Sel 14.2
4.68 +B9 Phone Key 9 Sel 14.2
4.69 +BA Phone Key Star Sel 14.2
4.70 +BB Phone Key Pound Sel 14.2
4.71 +BC Phone Key A Sel 14.2
4.72 +BD Phone Key B Sel 14.2
4.73 +BE Phone Key C Sel 14.2
4.74 +BF Phone Key D Sel 14.2
4.75 +C0-FFFF Reserved
4.76 \ No newline at end of file
5.1 --- a/HidUsageTables.cs Fri Dec 19 18:05:53 2014 +0100
5.2 +++ b/HidUsageTables.cs Fri Dec 19 18:56:38 2014 +0100
5.3 @@ -612,5 +612,246 @@
5.4 AppCtrlSelectSentence = 0x273,
5.5 AppCtrlDistributeVertically = 0x29C
5.6 }
5.7 +
5.8 + /// <summary>
5.9 + ///
5.10 + /// </summary>
5.11 + enum GenericDesktop : ushort
5.12 + {
5.13 + Null = 0x00,
5.14 + Pointer = 0x01,
5.15 + Mouse = 0x02,
5.16 + Joystick = 0x04,
5.17 + GamePad = 0x05,
5.18 + Keyboard = 0x06,
5.19 + Keypad = 0x07,
5.20 + MultiAxisController = 0x08,
5.21 + TabletPcSystemControls = 0x09,
5.22 + X = 0x30,
5.23 + Y = 0x31,
5.24 + Z = 0x32,
5.25 + Rx = 0x33,
5.26 + Ry = 0x34,
5.27 + Rz = 0x35,
5.28 + Slider = 0x36,
5.29 + Dial = 0x37,
5.30 + Wheel = 0x38,
5.31 + HatSwitch = 0x39,
5.32 + CountedBuffer = 0x3A,
5.33 + ByteCount = 0x3B,
5.34 + MotionWakeup = 0x3C,
5.35 + Start = 0x3D,
5.36 + Select = 0x3E,
5.37 + Vx = 0x40,
5.38 + Vy = 0x41,
5.39 + Vz = 0x42,
5.40 + Vbrx = 0x43,
5.41 + Vbry = 0x44,
5.42 + Vbrz = 0x45,
5.43 + Vno = 0x46,
5.44 + SystemControl = 0x80,
5.45 + SystemPowerDown = 0x81,
5.46 + SystemSleep = 0x82,
5.47 + SystemWakeUp = 0x83,
5.48 + SystemContextMenu = 0x84,
5.49 + SystemMainMenu = 0x85,
5.50 + SystemAppMenu = 0x86,
5.51 + SystemMenuHelp = 0x87,
5.52 + SystemMenuExit = 0x88,
5.53 + SystemMenuSelect = 0x89,
5.54 + SystemMenuRight = 0x8A,
5.55 + SystemMenuLeft = 0x8B,
5.56 + SystemMenuUp = 0x8C,
5.57 + SystemMenuDown = 0x8D,
5.58 + SystemColdRestart = 0x8E,
5.59 + SystemWarmRestart = 0x8F,
5.60 + DPadUp = 0x90,
5.61 + DPadDown = 0x91,
5.62 + DPadRight = 0x92,
5.63 + DPadLeft = 0x93,
5.64 + SystemDock = 0xA0,
5.65 + SystemUndock = 0xA1,
5.66 + SystemSetup = 0xA2,
5.67 + SystemBreak = 0xA3,
5.68 + SystemDebuggerBreak = 0xA4,
5.69 + ApplicationBreak = 0xA5,
5.70 + ApplicationDebuggerBreak = 0xA6,
5.71 + SystemSpeakerMute = 0xA7,
5.72 + SystemHibernate = 0xA8,
5.73 + SystemDisplayInvert = 0xB0,
5.74 + SystemDisplayInternal = 0xB1,
5.75 + SystemDisplayExternal = 0xB2,
5.76 + SystemDisplayBoth = 0xB3,
5.77 + SystemDisplayDual = 0xB4,
5.78 + SystemDisplayToggleIntExt = 0xB5,
5.79 + SystemDisplaySwapPrimarySecondary = 0xB6,
5.80 + SystemDisplayLcdAutoscale = 0xB7
5.81 + }
5.82 +
5.83 + /// <summary>
5.84 + ///
5.85 + /// </summary>
5.86 + enum SimulationControl : ushort
5.87 + {
5.88 + FlightSimulationDevice = 0x01,
5.89 + AutomobileSimulationDevice = 0x02,
5.90 + TankSimulationDevice = 0x03,
5.91 + SpaceshipSimulationDevice = 0x04,
5.92 + SubmarineSimulationDevice = 0x05,
5.93 + SailingSimulationDevice = 0x06,
5.94 + MotorcycleSimulationDevice = 0x07,
5.95 + SportsSimulationDevice = 0x08,
5.96 + AirplaneSimulationDevice = 0x09,
5.97 + HelicopterSimulationDevice = 0x0A,
5.98 + MagicCarpetSimulationDevice = 0x0B,
5.99 + BicycleSimulationDevice = 0x0C,
5.100 + FlightControlStick = 0x20,
5.101 + FlightStick = 0x21,
5.102 + CyclicControl = 0x22,
5.103 + CyclicTrim = 0x23,
5.104 + FlightYoke = 0x24,
5.105 + TrackControl = 0x25,
5.106 + Aileron = 0xB0,
5.107 + AileronTrim = 0xB1,
5.108 + AntiTorqueControl = 0xB2,
5.109 + AutopilotEnable = 0xB3,
5.110 + ChaffRelease = 0xB4,
5.111 + CollectiveControl = 0xB5,
5.112 + DiveBrake = 0xB6,
5.113 + ElectronicCountermeasures = 0xB7,
5.114 + Elevator = 0xB8,
5.115 + ElevatorTrim = 0xB9,
5.116 + Rudder = 0xBA,
5.117 + Throttle = 0xBB,
5.118 + FlightCommunications = 0xBC,
5.119 + FlareRelease = 0xBD,
5.120 + LandingGear = 0xBE,
5.121 + ToeBrake = 0xBF,
5.122 + Trigger = 0xC0,
5.123 + WeaponsArm = 0xC1,
5.124 + WeaponsSelect = 0xC2,
5.125 + WingFlaps = 0xC3,
5.126 + Accelerator = 0xC4,
5.127 + Brake = 0xC5,
5.128 + Clutch = 0xC6,
5.129 + Shifter = 0xC7,
5.130 + Steering = 0xC8,
5.131 + TurretDirection = 0xC9,
5.132 + BarrelElevation = 0xCA,
5.133 + DivePlane = 0xCB,
5.134 + Ballast = 0xCC,
5.135 + BicycleCrank = 0xCD,
5.136 + HandleBars = 0xCE,
5.137 + FrontBrake = 0xCF,
5.138 + RearBrake = 0xD0
5.139 + }
5.140 +
5.141 + /// <summary>
5.142 + ///
5.143 + /// </summary>
5.144 + enum GameControl : ushort
5.145 + {
5.146 + GameController3D = 0x01,
5.147 + PinballDevice = 0x02,
5.148 + GunDevice = 0x03,
5.149 + PointOfView = 0x20,
5.150 + TurnRightLeft = 0x21,
5.151 + PitchForwardBackward = 0x22,
5.152 + RollRightLeft = 0x23,
5.153 + MoveRightLeft = 0x24,
5.154 + MoveForwardBackward = 0x25,
5.155 + MoveUpDown = 0x26,
5.156 + LeanRightLeft = 0x27,
5.157 + LeanForwardBackward = 0x28,
5.158 + HeightOfPov = 0x29,
5.159 + Flipper = 0x2A,
5.160 + SecondaryFlipper = 0x2B,
5.161 + Bump = 0x2C,
5.162 + NewGame = 0x2D,
5.163 + ShootBall = 0x2E,
5.164 + Player = 0x2F,
5.165 + GunBolt = 0x30,
5.166 + GunClip = 0x31,
5.167 + GunSelector = 0x32,
5.168 + GunSingleShot = 0x33,
5.169 + GunBurst = 0x34,
5.170 + GunAutomatic = 0x35,
5.171 + GunSafety = 0x36,
5.172 + GamepadFireJump = 0x37,
5.173 + GamepadTrigger = 0x39
5.174 + }
5.175 +
5.176 + /// <summary>
5.177 + ///
5.178 + /// </summary>
5.179 + enum TelephonyDevice : ushort
5.180 + {
5.181 + Phone = 0x01,
5.182 + AnsweringMachine = 0x02,
5.183 + MessageControls = 0x03,
5.184 + Handset = 0x04,
5.185 + Headset = 0x05,
5.186 + TelephonyKeyPad = 0x06,
5.187 + ProgrammableButton = 0x07,
5.188 + HookSwitch = 0x20,
5.189 + Flash = 0x21,
5.190 + Feature = 0x22,
5.191 + Hold = 0x23,
5.192 + Redial = 0x24,
5.193 + Transfer = 0x25,
5.194 + Drop = 0x26,
5.195 + Park = 0x27,
5.196 + ForwardCalls = 0x28,
5.197 + AlternateFunction = 0x29,
5.198 + Line = 0x2A,
5.199 + SpeakerPhone = 0x2B,
5.200 + Conference = 0x2C,
5.201 + RingEnable = 0x2D,
5.202 + RingSelect = 0x2E,
5.203 + PhoneMute = 0x2F,
5.204 + CallerId = 0x30,
5.205 + Send = 0x31,
5.206 + SpeedDial = 0x50,
5.207 + StoreNumber = 0x51,
5.208 + RecallNumber = 0x52,
5.209 + PhoneDirectory = 0x53,
5.210 + VoiceMail = 0x70,
5.211 + ScreenCalls = 0x71,
5.212 + DoNotDisturb = 0x72,
5.213 + Message = 0x73,
5.214 + AnswerOnOff = 0x74,
5.215 + InsideDialTone = 0x90,
5.216 + OutsideDialTone = 0x91,
5.217 + InsideRingTone = 0x92,
5.218 + OutsideRingTone = 0x93,
5.219 + PriorityRingTone = 0x94,
5.220 + InsideRingback = 0x95,
5.221 + PriorityRingback = 0x96,
5.222 + LineBusyTone = 0x97,
5.223 + ReorderTone = 0x98,
5.224 + CallWaitingTone = 0x99,
5.225 + ConfirmationTone1 = 0x9A,
5.226 + ConfirmationTone2 = 0x9B,
5.227 + TonesOff = 0x9C,
5.228 + OutsideRingback = 0x9D,
5.229 + Ringer = 0x9E,
5.230 + PhoneKey0 = 0xB0,
5.231 + PhoneKey1 = 0xB1,
5.232 + PhoneKey2 = 0xB2,
5.233 + PhoneKey3 = 0xB3,
5.234 + PhoneKey4 = 0xB4,
5.235 + PhoneKey5 = 0xB5,
5.236 + PhoneKey6 = 0xB6,
5.237 + PhoneKey7 = 0xB7,
5.238 + PhoneKey8 = 0xB8,
5.239 + PhoneKey9 = 0xB9,
5.240 + PhoneKeyStar = 0xBA,
5.241 + PhoneKeyPound = 0xBB,
5.242 + PhoneKeyA = 0xBC,
5.243 + PhoneKeyB = 0xBD,
5.244 + PhoneKeyC = 0xBE,
5.245 + PhoneKeyD = 0xBF
5.246 + }
5.247 +
5.248 }
5.249 }
5.250 \ No newline at end of file
6.1 --- a/genUsageTableEnum.pl Fri Dec 19 18:05:53 2014 +0100
6.2 +++ b/genUsageTableEnum.pl Fri Dec 19 18:56:38 2014 +0100
6.3 @@ -27,8 +27,8 @@
6.4 my $count=0;
6.5 foreach my $line(@lines)
6.6 {
6.7 - #if ($line=~ /^\#\s*define\s+(.+?)\s+([a-fA-FxX\d]+?)\s*$/)
6.8 - if ($line=~ /^([a-fA-FxX\d]+)(.+)\s+\w+\s+15\..*$/)
6.9 + #if ($line=~ /^([a-fA-FxX\d]+)(.+)\s+\w+\s+15\..*$/)
6.10 + if ($line=~ /^([a-fA-FxX\d]+)(.+)\s+\w+\s+\d+\..*$/)
6.11 {
6.12 my $string=$2;
6.13 my $value=$1;