ATS_touch.h
1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
Copyright Wang yong ALL RIGHT RESERVED !
@ file name: ATS_touch.h
@ description: 触摸事件响应接口文件
@ Author: wangyong, doforfaith@gmail.com
@ Modify History:
Date Event Person
10-05-31 Creator wangyong
*/
#if defined(__SKY_3DGUI__)
#ifndef __ATS_TOUCH_H__
#define __ATS_TOUCH_H__
#include "ATS_basic.h"
#include "ATS_adaptation_features.h"
typedef enum {
ATS_TC_STATE_NONE,
ATS_TC_STATE_DOWN,
ATS_TC_STATE_MOVE,
ATS_TC_STATE_UP,
ATS_TC_STATE_LONGTAP,
ATS_TC_STATE_REPEAT,
ATS_TC_STATE_ABORT,
ATS_TC_STATE_DOUBLE_CLICK,
ATS_TC_STATE_MAX
}ATS_TC_STATE;
typedef void (*ATS_TC_HDLR)( ats_int32 x, ats_int32 y );
/*注册触摸事件响应函数*/
/*按下事件*/
extern void ATS_tc_register_touch_down_handler( ATS_TC_HDLR touch_hdlr );
/*移动事件*/
extern void ATS_tc_register_touch_move_handler( ATS_TC_HDLR touch_hdlr );
/*放开事件*/
extern void ATS_tc_register_touch_up_handler( ATS_TC_HDLR touch_hdlr );
/*长按事件*/
extern void ATS_tc_register_touch_longtap_handler( ATS_TC_HDLR touch_hdlr );
/*持续按住事件*/
extern void ATS_tc_register_touch_repeat_handler( ATS_TC_HDLR touch_hdlr );
/*touch 终止事件*/
extern void ATS_tc_register_touch_abort_handler( ATS_TC_HDLR touch_hdlr );
/*双击事件*/
extern void ATS_tc_register_touch_double_click_handler( ATS_TC_HDLR touch_hdlr );
#endif /*__ATS_TOUCH_H__*/
#endif /*__SKY_3DGUI__*/