⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tchscr.h

📁 基于uc/osII的2410开发板触摸屏驱动的源代码
💻 H
字号:
#include "../inc/macro.h"

#ifndef __TCHSCR_H__
#define __TCHSCR_H__

/////////触摸屏动作////////
#define TCHSCR_ACTION_NULL			0	
#define TCHSCR_ACTION_CLICK		1	//触摸屏单击
#define TCHSCR_ACTION_DBCLICK		2	//触摸屏双击
#define TCHSCR_ACTION_DOWN		3	//触摸屏按下
#define TCHSCR_ACTION_UP			4	//触摸屏抬起
#define TCHSCR_ACTION_MOVE		5	//触摸屏移动

typedef struct {
	int x;
	int y;
	int action;
}tsdata, *Ptsdata;

void TchScr_GetScrXY(int *x, int *y);
//void Touch_Screen_Task(void *Id);		//触摸屏任务

void TchScr_init(void);
#endif //#ifndef __TCHSCR_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -