Android 4.0.3上的USB触摸屏->;无法选择(仅移动指针)

Android 4.0.3上的USB触摸屏->;无法选择(仅移动指针),usb,touchscreen,hid,lcd,Usb,Touchscreen,Hid,Lcd,大家早上好 我买了一台集成了电阻式触摸屏的LCD嵌入式显示器。 TS可通过USB接口 我已经将它连接到运行Android 4.0.3的设备上,触摸被正确识别为externale HID。 问题:轻触(按下)不被识别为选择/确认…当我轻触屏幕时,唯一发生的事情是按手指的坐标移动指针(箭头)。就像我没有左键单击就移动了隐藏的鼠标一样 我无法滚动或选择某个-->大混乱:( 请记住,我有另一个集成USB TS的LCD,可以正常工作。我可以选择图标,以防我点击它们,我可以滚动窗口等->就像鼠标左键总是点击

大家早上好

我买了一台集成了电阻式触摸屏的LCD嵌入式显示器。 TS可通过USB接口

我已经将它连接到运行Android 4.0.3的设备上,触摸被正确识别为externale HID。 问题:轻触(按下)不被识别为选择/确认…当我轻触屏幕时,唯一发生的事情是按手指的坐标移动指针(箭头)。就像我没有左键单击就移动了隐藏的鼠标一样

我无法滚动或选择某个-->大混乱:(

请记住,我有另一个集成USB TS的LCD,可以正常工作。我可以选择图标,以防我点击它们,我可以滚动窗口等->就像鼠标左键总是点击->确定为我

也许是司机的问题,但我没有具体的想法

另外,我没有该设备的特定驱动程序

有什么建议吗,伙计们?请帮帮我:)


提前谢谢你

我自己已经在这方面搜索了几个月了。安卓系统似乎将大多数触摸屏显示器识别为鼠标。两者在操作和设备定义上有很大不同。(). 这可能是滚动和单击不起作用的原因。我还没有找到适合Android的触摸屏显示器(

我已经找到了触摸输入设备的开发指南。似乎鼠标和触摸屏有很多不同。我认为您的问题可以通过为触摸屏使用合适的驱动程序来解决


似乎有几家公司正在尝试生产Android触摸屏显示器:

Hanns.G正在开发一款为android提供无线触摸屏支持的显示器:

您需要为您的设备创建.idc配置文件

这里描述的过程

例如,如果您的设备名为XYZ Touchscreen,请在/system/usr/idc/中创建文件XYZ_Touchscreen.idc 内容如下:

# Basic Parameters
touch.deviceType = touchScreen
touch.orientationAware = 1
touch.gestureMode = default
device.external = 1
touch.usingJitterFilter = 1

android内置支持任何HID鼠标或HID数字化仪。 它还需要一个基于以下任何一种格式的助手文件。 如果找不到此类帮助文件,则触摸屏将充当tochpad

您可以使用linux evtest工具来检查usb设备的类型

参考:

输入设备配置文件按USB供应商、产品(和可选版本)id或输入设备名称定位

按顺序查阅以下路径。
作为HID数字化仪的微芯片AR1100 USB设备示例 /system/usr/idc/Vendor_04d8_Product_0c03.idc

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#
# Emulator keyboard configuration file #1.
#

# Basic Parameters
touch.deviceType = touchScreen
touch.orientationAware = 1

# Size
touch.size.calibration = diameter
touch.size.scale = 0
touch.size.bias = 0
touch.size.isSummed = 0

# Pressure
# Driver reports signal strength as pressure.
#
# A normal thumb touch typically registers about 200 signal strength
# units although we don't expect these values to be accurate.
touch.pressure.calibration = amplitude
touch.pressure.scale = 0.005

# Orientation
touch.orientation.calibration = none
谢谢

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#
# Emulator keyboard configuration file #1.
#

# Basic Parameters
touch.deviceType = touchScreen
touch.orientationAware = 1

# Size
touch.size.calibration = diameter
touch.size.scale = 0
touch.size.bias = 0
touch.size.isSummed = 0

# Pressure
# Driver reports signal strength as pressure.
#
# A normal thumb touch typically registers about 200 signal strength
# units although we don't expect these values to be accurate.
touch.pressure.calibration = amplitude
touch.pressure.scale = 0.005

# Orientation
touch.orientation.calibration = none