飞凌OK210
刚开始只写了export set QWS_MOUSE_PROTO=TSLIB:/dev/input/event0
所以只会支持触摸屏
只有在插上了USB鼠标后才会在input下产生设备节点
在/dev/input 下拔插鼠标查看设备节点的变化。插上鼠标新增的设备节点就是USB鼠标的
在脚本文件中加入
export set QWS_MOUSE_PROTO="TSLIB:/dev/input/event0 Intellimouse:/dev/input/mouse0"
飞凌OK210电容屏:export set QWS_MOUSE_PROTO="TSLIB:/dev/input/event3 Intellimouse:/dev/input/mouse2"
电阻屏:export set QWS_MOUSE_PROTO="TSLIB:/dev/input/event2 Intellimouse:/dev/input/mouse2"
不同的开发板设备节点有差异根据实际情况选择
默认的环境变量是空
这样做完之后必须在运行脚本文件和qt程序前插上鼠标才能使用。即不支持鼠标热拔插。
原文链接:http://blog.csdn.net/xie376450483/article/details/6092685