金牌会员
 
- 积分
- 1007
- 金钱
- 1007
- 注册时间
- 2015-7-26
- 在线时间
- 108 小时
|
发表于 2016-4-9 00:34:45
|
显示全部楼层
我以这个为模板写的程序,可以显示,但是触摸没有反应,触摸需要修改哪些地方啊
#define GUI_OS (0) /* Compile with multitasking support */
#define GUI_SUPPORT_TOUCH (1) /* Support a touch screen (req. win-manager) */
#define GUI_SUPPORT_UNICODE (0) /* Support mixed ASCII/UNICODE strings */
#define GUI_DEFAULT_FONT &GUI_Font6x8
#define GUI_ALLOC_SIZE 10000 /* Size of dynamic memory ... For WM and memory devices*/
#define GUI_WINSUPPORT 1 /* Window manager package available */
#define GUI_SUPPORT_MEMDEV 1 /* Memory devices available */
#define GUI_SUPPORT_AA 1 /* Anti aliasing available */
#define GUI_TOUCH_AD_LEFT 0
#define GUI_TOUCH_AD_RIGHT 800
#define GUI_TOUCH_AD_TOP 0
#define GUI_TOUCH_AD_BOTTOM 480
int GUI_TOUCH_X_MeasureX(void) {
if(tp_dev.scan(0))//Óд¥Ãþ
{
return tp_dev.x[0];
}else return 0XFFFF;
}
int GUI_TOUCH_X_MeasureY(void) {
if(tp_dev.scan(0))//Óд¥Ãþ
{
return tp_dev.y[0];
}else return 0XFFFF;
}
还有需要修改的吗? |
|