【问题标题】:USB touchscreen on Android 4.0.3 -> not possible to select (only moving the pointer)Android 4.0.3 上的 USB 触摸屏 -> 无法选择(仅移动指针)
【发布时间】:2012-08-10 06:22:32
【问题描述】:

大家早上好。

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

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

我无法滚动或选择某些东西 --> 对我来说一团糟 :(

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

也许这是驱动程序的问题,但我没有具体的想法。

附:我没有该设备的特定驱动程序。

有什么建议吗?请帮帮我:)

提前谢谢你!!!!!!

【问题讨论】:

    标签: usb touchscreen hid lcd


    【解决方案1】:

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

    这里描述的过程http://source.android.com/tech/input/input-device-configuration-files.html

    例如,如果您的设备名称为 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
    

    【讨论】:

      【解决方案2】:

      android 内置对任何 HID-MOUSE 或 HID-DIGITIZER 的支持。 它还需要一个基于以下任何一种格式的帮助文件。 如果没有找到此类帮助文件,则触摸屏将充当触控板。

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

      参考:

      https://source.android.com/devices/input/input-device-configuration-files.html

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

      以下路径依次查询。

      /system/usr/idc/Vendor_XXXX_Product_XXXX_Version_XXXX.idc
      /system/usr/idc/Vendor_XXXX_Product_XXXX.idc
      /system/usr/idc/DEVICE_NAME.idc
      /data/system/devices/idc/Vendor_XXXX_Product_XXXX_Version_XXXX.idc
      /data/system/devices/idc/Vendor_XXXX_Product_XXXX.idc
      /data/system/devices/idc/DEVICE_NAME.idc
      

      Microchip AR1100 USB 设备作为 HID-DIGITIZER 的示例 /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
      

      谢谢,

      【讨论】:

        【解决方案3】:

        我自己已经为此搜索了几个月。似乎大多数触摸屏显示器都被 Android 识别为鼠标。两者在操作和设备定义上有很大不同。 (Android Input Device Configuration Files)。这可能是滚动和点击不起作用的原因。我还没有找到带有适用于 Android 的适当驱动程序的触摸屏显示器。 :(

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

        This forum discussion may be of some help to you

        【讨论】:

          【解决方案4】:

          似乎有几家公司试图制造 Android 触摸屏显示器:

          Hanns.G 正在开发一款为 android 提供无线触摸屏支持的显示器: http://liliputing.com/2011/09/two-way-sync-between-an-android-tablet-and-a-touchscreen-monitor.html http://hackaday.com/2011/07/11/running-android-on-large-touch-screen-displays/

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 2012-11-08
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2012-09-29
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多