Unity3D说明文档翻译-Mobile Device Input

Mobile Device Input

手机设备输入

On mobile devices, the Input class offers access to touchscreen, accelerometer and geographical/location input.

在手机设备上,输入类提供了适用于触屏,加速计和地理位置的输入.

Access to keyboard on mobile devices is provided via the iOS keyboard.

适合于手机设备的键盘设置由”苹果键盘”提供.

Multi-Touch Screen

多点触控屏幕

The iPhone and iPod Touch devices are capable of tracking up to five fingers touching the screen simultaneously. You can retrieve the status of each finger touching the screen during the last frame by accessing the Input.touches property array.

iPhone和iPad触屏设备可以追踪跟进5个手指同时触摸屏幕.你可以通过访问触屏输入属性数组检索最后一帧每个手指触摸屏幕的状态.

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.

安卓设备没有一个统一的多少个手指踪迹的限制.相反,它在每种设备间都不同,可能是任何在老设备上两指触屏的效果会和新设备上五指做的相同.

Each finger touch is represented by an Input.Touch data structure:

每一个手指触摸代表一个触摸输入数据结构:

Property:

属性

Function:

功能

fingerId

手指Id

The unique index for a touch.

一个触摸的唯一索引

Position

位置

The screen position of the touch.

触摸在屏幕上的位置

deltaPosition

位置增量

The screen position change since the last frame.

从最后一帧开始屏幕位置的改变

deltaTime

时间增量

Amount of time that has passed since the last state change.

从最后一次状态改变到此时的时间总计

tapCount

叩击次数

The iPhone/iPad screen is able to distinguish quick finger taps by the user. This counter will let you know how many times the user has tapped the screen without moving a finger to the sides. %android%Android devices do not count number of taps, this field is always 1.%%

iPhone和iPad可以区分用户快速手指点击.这个计数器将让你知道用户已经点击屏幕多少次无需向旁边移动手指.安卓设备不计数点击数,此处总是为1.

Phase

相位

Describes so called “phase” or the state of the touch. It can help you determine if the touch just began, if user moved the finger or if he just lifted

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值