touch.h 539 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _TOUCH_H
  2. #define _TOUCH_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef struct {
  7. int x[5], xfb[5];
  8. int y[5], yfb[5];
  9. int a[7];
  10. } calibration;
  11. #define TOUCH_START_EVENT 1
  12. #define TOUCH_STOP_EVENT 2
  13. #define TOUCH_SAMPLE_EVENT 3
  14. UINT32 AdjustTouch(void);
  15. void InitializeCalibration(int a0, int a1, int a2, int a3, int a4, int a5, int a6);
  16. int LoadTouchConfigure(void);
  17. void TouchInit(void);
  18. void TouchEventHandler(UINT32 ulEvent, UINT32 lpParam, UINT32 wParam);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* _TOUCH_H */