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.

85 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. mutohpen.h
  5. Abstract: Contains definitions of the Mutoh pen tablet.
  6. Environment:
  7. User mode
  8. Author:
  9. Michael Tsang (MikeTs) 20-Apr-2000
  10. Revision History:
  11. --*/
  12. #ifndef _MUTOHPEN_H
  13. #define _MUTOHPEN_H
  14. //
  15. // Pen Tablet Feature Report
  16. //
  17. #define PENFEATURE_USAGE_PAGE 0xff00
  18. #define PENFEATURE_USAGE 1
  19. #define PENFEATURE_REPORT_ID 2
  20. //
  21. // Pen Feature bits
  22. //
  23. #define PENFEATURE_RATE_MASK 0x0000000f
  24. #define PENFEATURE_RATE_MIN 0
  25. #define PENFEATURE_RATE_MAX 9
  26. #define PENFEATURE_DIGITAL_FILTER_ON 0x00000010
  27. #define PENFEATURE_GLITCH_FILTER_ON 0x00000020
  28. //
  29. // Button states
  30. //
  31. #define BUTSTATE_TIP_DOWN 0x0001
  32. #define BUTSTATE_SIDESW_ON 0x0002
  33. //
  34. // Side switch combo box string index
  35. //
  36. #define SWCOMBO_NONE 0
  37. #define SWCOMBO_CLICK 1
  38. #define SWCOMBO_RCLICK 2
  39. #define SWCOMBO_DBLCLICK 3
  40. //
  41. // Private window message to the mutoh dialog proc.
  42. //
  43. #define WM_PENTILTCAL_DONE (WM_APP + 0)
  44. #define WM_LINEARCAL_DONE (WM_APP + 1)
  45. //
  46. // Type definitions
  47. //
  48. typedef struct _PEN_SETTINGS
  49. {
  50. DWORD dwFeatures;
  51. int iSideSwitchMap;
  52. LONG dxPenTilt;
  53. LONG dyPenTilt;
  54. LINEAR_MAP LinearityMap;
  55. } PEN_SETTINGS, *PPEN_SETTINGS;
  56. // dwFlags values
  57. #define CPF_VALID 0x00000001
  58. #define CPF_CALIBRATED 0x00000002
  59. typedef struct _CALIBRATE_PT
  60. {
  61. ULONG dwFlags;
  62. POINT ScreenPt;
  63. POINT DigiPt;
  64. } CALIBRATE_PT, *PCALIBRATE_PT;
  65. #endif //ifndef _MUTOHPEN_H