sample.pressure==1 相当于SDL_MOUSEBUTTONDOWN
sample.pressure==0 相当于SDL_MOUSEBUTTONUP;
sample.x;sample.y; 即为触点的坐标
struct tsdev *ts;
char *tsdevice=NULL;
if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL )
{
ts = ts_open(tsdevice,0);
}
else
ts = ts_open("/dev/event1", 0);
if (!ts)
{
perror("ts_open");
exit(1);
}
perror("ts_open ok\n");
if (ts_
arm触屏获取触点坐标
最新推荐文章于 2021-03-30 18:13:01 发布