心口疼吃什么药| 肝的功能是什么| 皮肤镜能检查出什么| 前囟门什么时候闭合| 鱼腥草与什么相克| 沟壑什么意思| 七月八日是什么星座| 父母坟上长树意味什么| 刺身是什么| aurora是什么牌子| vr间隙是什么意思| 天珠有什么作用与功效| 摄入是什么意思| 智齿为什么会长出来| saa偏高说明什么| 立夏节吃什么| 什么的绿毯| 尿酸高是什么原因导致的| 板鞋配什么裤子好看| 铅超标有什么症状| 头上出汗是什么原因| 黄盖代表什么生肖| 5月30日是什么星座| 朔日是什么意思| 孕妇肾积水是什么原因引起的| 老人嗜睡是什么原因| 北边是什么生肖| 什么东西嘴里没有舌头| 什么水果补肾| 赡养什么意思| 什么是brt| 彗星尾征是什么意思| cupid什么意思| 粥样动脉硬化是什么意思| 女性什么时间是排卵期| 1992年出生的是什么命| 孵化是什么意思| 风流人物指什么生肖| 脚崴了吃什么药| 蜘蛛痣是什么原因引起的| 左手有点麻是什么原因| bottle是什么意思| 游山玩水是什么意思| 梦见怀孕是什么征兆| 活珠子是什么| 脸发麻是什么病的前兆| 阴茎疱疹用什么药| 金达克宁和达克宁有什么区别| 蝙蝠粪便是什么中药| 女人吃知了有什么好处| 胃ca是什么意思| 咳嗽吐黄痰是什么原因| 情节是什么| 月完念什么| 心肾不交失眠吃什么中成药| 雾里看花是什么意思| 睡觉多梦吃什么药| 朱元璋为什么杀徐达| sheet是什么意思| 射精是什么意思| 50年属什么| 螳螂捕蝉是什么意思| 寒湿吃什么药| 什么有作为| 孜然是什么植物| 又什么又什么的花| 代孕是什么意思| 三点水的字大多与什么有关| 物是人非什么意思| rem睡眠是什么意思| 什么样才是包皮| 一直发烧不退是什么原因| pacs什么意思| 肠痉挛有什么症状| 属猪的守护神是什么菩萨| 老打饱嗝是什么原因| 来年是什么意思| 超细旦是什么面料| 双向情感障碍吃什么药| 电脑关机快捷键是什么| 陌上花开可缓缓归矣什么意思| 何炅和谢娜是什么关系| 什么是禅定| 什么是庚日| 刚出生的小鱼苗吃什么| 12月25日是什么日子| 民不聊生是什么意思| 脑子嗡嗡响是什么原因| 早上嘴苦是什么原因| 高温丝假发是什么材质| 蓝柑是什么水果| 中耳炎去药店买什么药| 尿痛吃什么药效果最好| 玫瑰花泡水喝有什么好处| 天秤和什么星座最配| 婴儿拉奶瓣是什么原因| 绿草如茵是什么生肖| 深明大义是什么意思| 头胀是什么原因导致的| 孕妇胃疼可以吃什么药| 开塞露用多了有什么副作用| 喝雄黄酒是什么节日| 脑血管堵塞有什么症状| 谷丙转氨酶是什么意思| pct偏高说明什么| 蝉属于什么类动物| 玮字五行属什么| 血压低什么原因| 炒菜什么时候放调料| svip和vip有什么区别| laura是什么意思| 容易犯困是什么原因| 血糖高的人吃什么好| 大连机场叫什么名字| 液化气是什么| unny是什么牌子| 吃什么药升血小板最快| 尿培养能查出什么病| 20年是什么婚| 血栓有什么症状| 八字指的是什么| 树脂材料是什么| 小结节是什么意思| 丢包率是什么意思| 骨蒸潮热是什么意思| 胃火吃什么食物好| 大基数是什么意思| 诸事不宜是什么意思| 猫的胡须是干什么用的| 乳腺结节不能吃什么| EPS什么意思| 有心无力是什么意思| 脑白质变性是什么意思| 船只是什么意思| 世界上最大的沙漠是什么沙漠| 什么泡水喝可降血压| 指甲月牙代表什么意思| 黄豆什么时候种| 姊是什么意思| 婴儿枕头里面装什么好| 果实属于什么器官| 全运会是什么| 处男是什么| 喇叭裤配什么鞋子好看| 隔离是什么意思| 清洁度111是什么意思| 撸管是什么| 类风湿吃什么药好| 梦见自己掉牙齿是什么征兆| 上火吃什么食物| 梦见抓鸟是什么征兆| 拜土地公要准备什么东西| 辐照食品什么意思| 遗传代谢病是什么意思| 抽完血吃什么| 1922年属什么生肖| 高丽参和红参有什么区别| 提高免疫力吃什么维生素| 益气固表是什么意思| 六月是什么星座的| 口腔溃疡吃什么好得快| 荨麻疹吃什么药最管用| 人最重要的是什么| 懒散是什么意思| 刘禅属什么生肖| 四个龙念什么| 牙齿疼吃什么药| 脱肛是什么原因引起的| bambi什么意思| 天庭的动物是什么生肖| 大血小板比率偏高是什么原因| 胰腺不好有什么症状| 宝宝发烧是什么原因引起的| 查五行缺什么| 倾慕是什么意思| 肝火旺是什么意思| 阿飞是什么意思| 天安门以前叫什么| 阴道菌群失调用什么药| 咬牙齿是什么原因| 肾阴阳两虚用什么药| 什么东西能加不能减| 牛大力是什么| 捏捏是什么意思| 血压偏低是什么原因造成的| 屁多什么原因| 牛标志的车是什么牌子| 情绪高涨是什么意思| 泡泡像什么| 腰椎退变是什么意思| 千秋无绝色悦目是佳人什么意思| 长沙有什么景点| spo2是什么意思| 皮下紫癜是什么引起的| 什么因果才会有双胞胎| lym是什么意思| 木马是什么意思| 海棠花什么季节开花| 方得始终什么意思| 蝙蝠是什么类动物| 梦见手机屏幕摔碎了是什么意思| 什么病才吃阿昔洛韦片| 降血糖吃什么| 双侧瞳孔缩小见于什么| 撤侨是什么意思| 右耳朵发烫是什么征兆| 为什么冬天会下雪| 用你的手解我的锁是什么歌| 是什么标点符号| 乳腺病人吃什么好| 鬼冢虎什么档次| 口腔苦味是什么原因| 为什么不能用红笔写名字| 什么是绿茶女| 莳字五行属什么| 摩尔是什么| 肚子胀胀的是什么原因| 农历5月是什么星座| 咖啡与什么食物相克| 孕晚期吃什么好| 蜜饯是什么东西| 黄色裤子配什么颜色上衣| 一个月不来月经是什么原因| 吃什么降肝火| 彷徨是什么意思| 白带是什么味道| ca724偏高是什么意思| 指是什么意思| 王五行属性是什么| 十月二十二是什么星座| 张韶涵什么星座| 梦到镯子碎了什么预兆| 胎儿颈部可见u型压迹什么意思| 昂热为什么认识路鸣泽| grn什么颜色| 什么土方治咳嗽最有效| 变态反应科是看什么病的| 纤维增殖灶是什么意思| 驻外大使是什么级别| 寻麻疹是什么| 谨记的意思是什么| 5月31号是什么星座| mr检查是什么| 头脑灵活是什么生肖| 什么时候进伏| 来大姨妈喝什么最好| 老年痴呆症挂什么科| naomi什么意思| 肠炎吃什么| 冠带什么意思| 正常人的尿液是什么颜色| 最新奥特曼叫什么| 白癜风是什么原因引起的| 乌龟吃什么东西| 绿加红是什么颜色| 做梦梦见考试是什么意思| 什么牌子的风扇好| 双子座是什么象星座| 类固醇是什么东西| 枸杞对女人有什么好处| 自闭症是什么人投胎| 他乡遇故知什么意思| 女人月经总是提前是什么原因| 菜园里有什么菜| 百度
Version: Unity 6.1 (6000.1)
LanguageEnglish
  • C#

椰树集团王光兴:让企业有百年发展下去机会

百度 同样大幅增长的还有广汽传祺,2017年,传祺品牌累计销量达到万台,同比增长37%。

class in UnityEngine

/

Implemented in:UnityEngine.InputLegacyModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Interface into the Legacy Input system.

Note: The Input class is part of the legacy Input Manager. The recommended best practice is that you don't use this API in new projects. For new projects, use the Input System package. To learn more about input, refer to Input.

KeyCode maps to physical keys only if "Use Physical Keys" is enabled in Input Manager settings, otherwise it maps to layout and platform dependent key mapping. Starting from 2022.1 "Use Physical Keys" is enabled by default.

Use this class to read the axes set up in the Conventional Game Input, and to access multi-touch/accelerometer data on mobile devices.

To read an axis use Input.GetAxis with one of the following default axes: "Horizontal" and "Vertical" are mapped to joystick, A, W, S, D and the arrow keys. "Mouse X" and "Mouse Y" are mapped to the mouse delta. "Fire1", "Fire2" "Fire3" are mapped to Ctrl, Alt, Cmd keys and three mouse or joystick buttons. New input axes can be added. See Input Manager for this.

If you are using input for any kind of movement behaviour use Input.GetAxis. It gives you smoothed and configurable input that can be mapped to a keyboard, joystick or mouse. Use Input.GetButton for action-like events only. Do not use it for movement. Input.GetAxis will make the script code smaller and simpler.

Note: Input flags are not reset until Update. You should make all the Input calls in the Update Loop.

Additional resources: KeyCode which lists all of the key press, mouse and joystick options.

Mobile Devices:

iOS and Android devices are capable of tracking multiple fingers touching the screen simultaneously. You can access data on the status of each finger touching screen during the last frame by using the Input.touches property array.

As a device moves, its accelerometer hardware reports linear acceleration changes along the three primary axes in three-dimensional space. You can use this data to detect both the current orientation of the device (relative to the ground) and any immediate changes to that orientation.

Acceleration along each axis is reported directly by the hardware as G-force values. A value of 1.0 represents a load of about +1g along a given axis while a value of -1.0 represents -1g. If you hold the device upright (with the home button at the bottom) in front of you, the X axis is positive along the right, the Y axis is positive directly up, and the Z axis is positive pointing toward you.

You can use the Input.acceleration property to get the accelerometer reading. You can also use the Input.deviceOrientation property to get a discrete evaluation of the device's orientation in three-dimensional space. Detecting a change in orientation can be useful if you want to create game behaviors when the user rotates the device to hold it differently.

Note that the accelerometer hardware can be polled more than once per frame. To access all accelerometer samples since the last frame, you can use the Input.accelerationEvents property array. This can be useful when reconstructing player motions, feeding acceleration data into a predictor, or implementing other precise motion analysis.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public void Update() { if (Input.GetButtonDown("Fire1")) { Debug.Log(Input.mousePosition); } } }

This component relates to legacy methods for drawing UI textures and images to the screen. You should instead use UI system. This is also unrelated to the IMGUI system.

Static Properties

Property Description
accelerationLast measured linear acceleration of a device in three-dimensional space. (Read Only)
accelerationEventCountNumber of acceleration measurements which occurred during last frame.
accelerationEventsReturns list of acceleration measurements which occurred during the last frame. (Read Only) (Allocates temporary variables).
anyKeyIs any key or mouse button currently held down? (Read Only)
anyKeyDownReturns true the first frame the user hits any key or mouse button. (Read Only)
backButtonLeavesAppShould Back button quit the application?
compassProperty for accessing compass (handheld devices only). (Read Only)
compensateSensorsThis property controls if input sensors should be compensated for screen orientation.
compositionCursorPosThe current text input position used by IMEs to open windows.
compositionStringThe current IME composition string being typed by the user.
deviceOrientationDevice physical orientation as reported by OS. (Read Only)
gyroReturns default gyroscope.
imeCompositionModeControls enabling and disabling of IME input composition.
imeIsSelectedDoes the user have an IME keyboard input source selected?
inputStringReturns the keyboard input entered this frame. (Read Only)
locationProperty for accessing device location (handheld devices only). (Read Only)
mousePositionThe current mouse position in pixel coordinates. (Read Only).
mousePositionDeltaThe current mouse position delta in pixel coordinates. (Read Only).
mousePresentIndicates if a mouse device is detected.
mouseScrollDeltaThe current mouse scroll delta. (Read Only)
multiTouchEnabledProperty indicating whether the system handles multiple touches.
penEventCountReturns the number of queued pen events that can be accessed by calling [[GetPenEvent()]].
simulateMouseWithTouchesEnables/Disables mouse simulation with touches. By default this option is enabled.
stylusTouchSupportedReturns true when Stylus Touch is supported by a device or platform.
touchCountNumber of touches. Guaranteed not to change throughout the frame. (Read Only)
touchesReturns list of objects representing status of all touches during last frame. (Read Only) (Allocates temporary variables).
touchPressureSupportedBool value which let's users check if touch pressure is supported.
touchSupportedReturns whether the device on which application is currently running supports touch input.

Static Methods

Method Description
ClearLastPenContactEventClears the last stored pen event. Calling this function may impact event handling for UIToolKit elements.
GetAccelerationEventReturns specific acceleration measurement which occurred during last frame. (Does not allocate temporary variables).
GetAxisReturns the value of the virtual axis identified by axisName.
GetAxisRawReturns the value of the virtual axis identified by axisName with no smoothing filtering applied.
GetButtonReturns true while the virtual button identified by buttonName is held down.
GetButtonDownReturns true during the frame the user pressed down the virtual button identified by buttonName.
GetButtonUpReturns true the first frame the user releases the virtual button identified by buttonName.
GetJoystickNamesRetrieves a list of input device names corresponding to the index of an Axis configured within Input Manager.
GetKeyReturns true while the user holds down the key identified by name.
GetKeyDownReturns true during the frame the user starts pressing down the key identified by name.
GetKeyUpReturns true during the frame the user releases the key identified by name.
GetLastPenContactEventReturns the PenData for the last stored pen up or down event.
GetMouseButtonReturns whether the given mouse button is held down.
GetMouseButtonDownReturns true during the frame the user pressed the given mouse button.
GetMouseButtonUpReturns true during the frame the user releases the given mouse button.
GetPenEventReturns the PenData for the pen event at the given index in the pen event queue.
GetTouchCall Input.GetTouch to obtain a Touch struct.
IsJoystickPreconfiguredDetermine whether a particular joystick model has been preconfigured by Unity. (Linux-only).
ResetInputAxesResets all input. After ResetInputAxes all axes return to 0 and all buttons return to 0 for one frame.
ResetPenEventsClears the pen event queue.
什么是动脉瘤 远房亲戚是什么意思 安宫牛黄丸为什么那么贵 月经一个月来两次是什么原因 嘴唇干是什么原因引起的
上午10点半是什么时辰 嚣张是什么意思 血糖看什么指标 c13阳性是什么意思 胚胎停育是什么原因造成的
杜仲泡水喝有什么功效 做腋臭手术挂什么科室 不务正业是什么意思 非均匀性脂肪肝是什么意思 取环后月经量少是什么原因
孕妇喝咖啡有什么危害 室间隔增厚是什么意思 康波是什么意思 六一送女孩子什么礼物 肺气虚吃什么中成药
黑枸杞和什么一起泡水喝比较好hcv9jop5ns6r.cn 袁绍和袁术是什么关系hcv8jop3ns2r.cn 什么地奔跑hcv8jop0ns8r.cn 爸爸生日送什么礼物hcv7jop4ns8r.cn 变色龙吃什么食物bjhyzcsm.com
为什么尽量抽混合型烟hcv8jop7ns9r.cn 放疗后吃什么恢复快hcv8jop2ns4r.cn 梦见很多坟墓是什么意思hcv9jop6ns6r.cn 香奈儿是什么牌子1949doufunao.com 什么手表品牌最好hcv7jop9ns6r.cn
怀孕一个月肚子有什么变化hanqikai.com 唾液腺是什么组织hcv7jop6ns7r.cn 含锶矿泉水有什么好处hcv7jop6ns4r.cn 脸痒痒是什么原因hcv9jop0ns5r.cn 干事是什么职务sscsqa.com
青蛙为什么叫hcv8jop4ns6r.cn 大红袍是什么茶类hcv9jop3ns7r.cn 唐僧取经取的是什么经wuhaiwuya.com 来龙去脉指什么生肖baiqunet.com 胆红素是什么意思hcv9jop3ns1r.cn
百度