HID 报表描述符操纵杆实例

USAGE_PAGE (Generic Desktop)                05 01
LOGICAL_MINIMUM (0)                         15 00 
USAGE (Joystick)                            09 04
COLLECTION (Application)                    A1 01 
  USAGE_PAGE (Simulation Controls)          05 02
  USAGE (Throttle)                          09 BB
  LOGICAL_MINIMUM (-127)                    15 81 
  LOGICAL_MAXIMUM (127)                     25 7F 
  REPORT_SIZE (8)                           75 08 
  REPORT_COUNT (1)                          95 01 
  INPUT (Data,Var,Abs)                      81 02 
  USAGE_PAGE (Generic Desktop)              05 01
  USAGE (Pointer)                           09 01
  COLLECTION (Physical)                     A1 00 
    USAGE (X)                               09 30
    USAGE (Y)                               09 31
    REPORT_COUNT (2)                        95 02 
    INPUT (Data,Var,Abs)                    81 02 
  END_COLLECTION                            C0
  USAGE (Hat switch)                        09 39
  LOGICAL_MINIMUM (0)                       15 00 
  LOGICAL_MAXIMUM (3)                       25 03 
  PHYSICAL_MINIMUM (0)                      35 00 
  PHYSICAL_MAXIMUM (270)                    46 0E 01 
  UNIT (Eng Rot:Angular Pos)                65 14 
  REPORT_SIZE (4)                           75 04 
  REPORT_COUNT (1)                          95 01 
  INPUT (Data,Var,Abs)                      81 02 
  USAGE_PAGE (Button)                       05 09
  USAGE_MINIMUM (Button 1)                  19 01
  USAGE_MAXIMUM (Button 4)                  29 04
  LOGICAL_MINIMUM (0)                       15 00 
  LOGICAL_MAXIMUM (1)                       25 01 
  REPORT_SIZE (1)                           75 01 
  REPORT_COUNT (4)                          95 04 
  UNIT_EXPONENT (0)                         55 00 
  UNIT (None)                               65 00 
  INPUT (Data,Var,Abs)                      81 02 
END_COLLECTION                              C0
微信公众号
字节流公众号  字节流QQ群:952873936
取消
感谢您的支持,我会继续努力的!
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

Powered by bytekits.com,汇天下文字,成非凡梦想!!!