ATS_touch.h 1.37 KB
/*
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__*/