shell 查找输入设备
TouchDevice=gslX680
for InputDevices in /sys/class/input/input*
do
DeviceName=`cat $InputDevices/name`
#echo $InputDevices name:$DeviceName
if [ $DeviceName == $TouchDevice ];then
TouchDeviceNum=${InputDevices##*input}
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event$TouchDeviceNum
echo "add "/dev/input/event$TouchDeviceNum "to Qt Application."
break
fi
done
if [ ! -n "$TouchDeviceNum" ]; then
echo "Error:Input device $TouchDevice can not be found,plz check it!"
fi