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.

70 lines
3.8 KiB

  1. // D:\nt\drivers\wdm\input\tabletpc\DT\mutoh.h
  2. char ReportDescriptor[129] = {
  3. 0x05, 0x0d, // USAGE_PAGE (Digitizers)
  4. 0x09, 0x02, // USAGE (Pen)
  5. 0xa1, 0x01, // COLLECTION (Application)
  6. 0x85, 0x01, // REPORT_ID (1)
  7. 0x09, 0x20, // USAGE (Stylus)
  8. 0xa1, 0x00, // COLLECTION (Physical)
  9. 0x09, 0x42, // USAGE (Tip Switch)
  10. 0x09, 0x44, // USAGE (Barrel Switch)
  11. 0x15, 0x00, // LOGICAL_MINIMUM (0)
  12. 0x25, 0x01, // LOGICAL_MAXIMUM (1)
  13. 0x75, 0x01, // REPORT_SIZE (1)
  14. 0x95, 0x02, // REPORT_COUNT (2)
  15. 0x81, 0x02, // INPUT (Data,Var,Abs)
  16. 0x95, 0x03, // REPORT_COUNT (3)
  17. 0x81, 0x03, // INPUT (Cnst,Var,Abs)
  18. 0x09, 0x32, // USAGE (In Range)
  19. 0x95, 0x01, // REPORT_COUNT (1)
  20. 0x81, 0x02, // INPUT (Data,Var,Abs)
  21. 0x95, 0x02, // REPORT_COUNT (2)
  22. 0x81, 0x03, // INPUT (Cnst,Var,Abs)
  23. 0x05, 0x01, // USAGE_PAGE (Generic Desktop)
  24. 0x09, 0x30, // USAGE (X)
  25. 0x26, 0x98, 0x21, // LOGICAL_MAXIMUM (8600)
  26. 0x75, 0x10, // REPORT_SIZE (16)
  27. 0x95, 0x01, // REPORT_COUNT (1)
  28. 0x81, 0x02, // INPUT (Data,Var,Abs)
  29. 0x09, 0x31, // USAGE (Y)
  30. 0x26, 0x50, 0x19, // LOGICAL_MAXIMUM (6480)
  31. 0x81, 0x02, // INPUT (Data,Var,Abs)
  32. 0xc0, // END_COLLECTION
  33. 0x85, 0x02, // REPORT_ID (2)
  34. 0x05, 0x00, // USAGE_PAGE (Not Defined)
  35. 0x09, 0x01, // USAGE (Vendor Usage 1)
  36. 0x27, 0xff, 0xff, 0xff, 0x00, // LOGICAL_MAXIMUM (16777215)
  37. 0x75, 0x20, // REPORT_SIZE (32)
  38. 0x95, 0x01, // REPORT_COUNT (1)
  39. 0xb1, 0x02, // FEATURE (Data,Var,Abs)
  40. 0xc0, // END_COLLECTION
  41. 0x05, 0x01, // USAGE_PAGE (Generic Desktop)
  42. 0x09, 0x02, // USAGE (Mouse)
  43. 0xa1, 0x01, // COLLECTION (Application)
  44. 0x85, 0x03, // REPORT_ID (3)
  45. 0x09, 0x01, // USAGE (Pointer)
  46. 0xa1, 0x00, // COLLECTION (Physical)
  47. 0x05, 0x09, // USAGE_PAGE (Button)
  48. 0x19, 0x01, // USAGE_MINIMUM (Button 1)
  49. 0x29, 0x02, // USAGE_MAXIMUM (Button 2)
  50. 0x15, 0x00, // LOGICAL_MINIMUM (0)
  51. 0x25, 0x01, // LOGICAL_MAXIMUM (1)
  52. 0x75, 0x01, // REPORT_SIZE (1)
  53. 0x95, 0x02, // REPORT_COUNT (2)
  54. 0x81, 0x02, // INPUT (Data,Var,Abs)
  55. 0x95, 0x06, // REPORT_COUNT (6)
  56. 0x81, 0x03, // INPUT (Cnst,Var,Abs)
  57. 0x05, 0x01, // USAGE_PAGE (Generic Desktop)
  58. 0x09, 0x30, // USAGE (X)
  59. 0x09, 0x31, // USAGE (Y)
  60. 0x15, 0x81, // LOGICAL_MINIMUM (-127)
  61. 0x25, 0x7f, // LOGICAL_MAXIMUM (127)
  62. 0x75, 0x08, // REPORT_SIZE (8)
  63. 0x95, 0x02, // REPORT_COUNT (2)
  64. 0x81, 0x06, // INPUT (Data,Var,Rel)
  65. 0xc0, // END_COLLECTION
  66. 0xc0 // END_COLLECTION
  67. };