Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.1 KiB

  1. // D:\nt\drivers\wdm\input\hidpen\mutohpen\DT\buttons.h
  2. char ReportDescriptor[32] = {
  3. 0x05, 0x0c, // USAGE_PAGE (Consumer Devices)
  4. 0x09, 0x01, // USAGE (Consumer Control)
  5. 0xa1, 0x01, // COLLECTION (Application)
  6. 0x09, 0x03, // USAGE (Programmable Buttons)
  7. 0xa1, 0x00, // COLLECTION (Physical)
  8. 0x05, 0x09, // USAGE_PAGE (Button)
  9. 0x19, 0x01, // USAGE_MINIMUM (Button 1)
  10. 0x29, 0x06, // USAGE_MAXIMUM (Button 6)
  11. 0x15, 0x00, // LOGICAL_MINIMUM (0)
  12. 0x25, 0x01, // LOGICAL_MAXIMUM (1)
  13. 0x95, 0x06, // REPORT_COUNT (6)
  14. 0x75, 0x01, // REPORT_SIZE (1)
  15. 0x81, 0x00, // INPUT (Data,Ary,Abs)
  16. 0x95, 0x02, // REPORT_COUNT (2)
  17. 0x81, 0x03, // INPUT (Cnst,Var,Abs)
  18. 0xc0, // END_COLLECTION
  19. 0xc0 // END_COLLECTION
  20. };