使用 11 个手指的 iPad...在代码中扩展 Android 的限制
奇怪的是,iPad 可以处理触摸屏上多达 11 个接触点并成功解释它们,从而导致一些 有趣的游戏。
参考:http://www.liewcf.com/ipad-tablet-multitouch- Fingers-5202/
Android 设备对于跟踪的手指数量没有统一的限制。相反,它因设备而异,可以是从旧设备上的两次触摸到某些较新设备上的五个手指的任何操作。
有什么理论,无论多么聪明,可以说明如何在 Android 上捏造额外的手指吗?
Bizarrely, the iPad can handle up to 11 points of contact on the touch screen and interpret them successfully, leading to some interesting games.
Reference: http://www.liewcf.com/ipad-tablet-multitouch-fingers-5202/
Android devices don't have a unified limit on how many fingers they track. Instead, it varies from device to device and can be anything from two-touch on older devices to five fingers on some newer devices.
Any theories, however clever, on how one might fudge extra fingers on the Android?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
SDK 允许查询任意数量的输入(最多可达 int 可以容纳的最大值),因此任何限制纯粹是制造商在硬件/操作系统端实现的。在大多数情况下,对于高端手机,这很可能是操作系统限制,因为像 Incredible 和 Evo 中的 maXTouch 这样的触摸传感器没有限制。 NDK 确实在 Gingerbread 版本中添加了对触摸屏输入的支持,因此可能有一种方法可以在不使用自定义 rom 的情况下实现此目的。顺便说一句,如果您需要那么多点,您可以在清单中添加标签,以通过 android.hardware.touchscreen.multitouch.jazzhand 功能标签将您的应用程序限制为支持五个或更多点的设备。
The SDK allows for the query of any number of inputs (up to the largest value an int can hold) so any limitations would purely what the manufacturer implemented on the hardware/os end. In most cases for high end phones, it is most likely an OS limitation since touch sensors like the maXTouch in the Incredible and Evo have no limit. The NDK did add support for touchscreen input in the Gingerbread release so there may be a way to do this without custom roms. On a side note, if you need that many points, you can add the tag in the Manifest to limit your app to devices that support five or more with the android.hardware.touchscreen.multitouch.jazzhand feature tag.
这应该取决于硬件设计。
看看苹果的这项专利:Apple 赢得 iPad Dock、MacBook Air 和 MacBook Air 专利多点触控
它(稍微)解释了 iPhone/iPad 的多点触控处理。
It should depend on the hardware design.
Look this patent by Apple: Apple Wins Patents for iPad Dock, MacBook Air & Multi-Touch
It explains (a little) the multitouch processing for iPhone/iPad.
我非常怀疑您是否能够使用 SDK 跟踪 Android 上的额外接触点,也许,只是 NDK 有能力,但我几乎确定您需要自定义 rom。
I highly doubt you will be able to track extra touch points on Android using the SDK, maybe, just maybe the NDK has the ability, but im almost sure you require customs roms.