Gesture.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /********************************** (C) COPYRIGHT ******************************
  2. * File Name :usb_driver.h
  3. * Author : DL
  4. * Version : V1.1
  5. * Date : 2020/06/02
  6. * Description : A demo for USB compound device created by CH552, support
  7. touch panel , and HID-compliant device.
  8. ********************************************************************************/
  9. #ifndef _GESTURE_H
  10. #define _GESTURE_H
  11. #include "typedef.h"
  12. #ifdef GESTURE
  13. extern UINT8 byTouchNumberChange; //˫ָ���ʱ��¼��ָ���仯
  14. extern UINT8 byTouchTime1; //��ָ���ʱ��ʱ
  15. extern UINT8 byTouchTime2; //˫ָ���ʱ��ʱ
  16. // extern UINT16 wCoorXBak[]; //����X���꣬�����ж��Ƿ��л���
  17. // extern UINT16 wCoorYBak[]; //����Y���꣬�����ж��Ƿ��л���
  18. extern UINT8 byFirstTouch; //����˫ָ��һ�ΰ���ȥ��
  19. extern BOOL bMoveFlag; //˫ָ������־
  20. extern BOOL bclickFlag; //˫ָ�����־
  21. extern UINT8 byWheelUpDown; //˫ָ������������¹�����־
  22. extern void WheelMove(void);
  23. extern UINT8 TwoPointsClick(void);
  24. extern UINT8 FourfingersGesture(void);
  25. #endif
  26. #ifdef DOUBLECLIK_FILETER
  27. extern UINT8 DoubleClickTimer;
  28. void DoubleClickFilter(BOOL flag, UINT8 id);
  29. #endif
  30. #ifdef CALL_OSD_MENU
  31. extern void CallOSDMenu(void);
  32. #endif
  33. #endif