Class Input
Assembly: UnityEngine.dll
Properties
Declaration
public static Vector3 acceleration { get; }
Property Value
Declaration
public static int accelerationEventCount { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public static AccelerationEvent[] accelerationEvents { get; }
Property Value
Declaration
public static bool anyKey { get; }
Property Value
Declaration
public static bool anyKeyDown { get; }
Property Value
Declaration
public static bool backButtonLeavesApp { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public static Compass compass { get; }
Property Value
Declaration
public static bool compensateSensors { get; set; }
Property Value
Declaration
public static Vector2 compositionCursorPos { get; set; }
Property Value
Declaration
public static string compositionString { get; }
Property Value
Declaration
public static DeviceOrientation deviceOrientation { get; }
Property Value
eatKeyPressOnTextFieldFocus
Declaration
[Obsolete("eatKeyPressOnTextFieldFocus property is deprecated, and only provided to support legacy behavior.")]
public static bool eatKeyPressOnTextFieldFocus { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public static Gyroscope gyro { get; }
Property Value
Declaration
public static IMECompositionMode imeCompositionMode { get; set; }
Property Value
Declaration
public static bool imeIsSelected { get; }
Property Value
Declaration
public static string inputString { get; }
Property Value
Declaration
[Obsolete("isGyroAvailable property is deprecated. Please use SystemInfo.supportsGyroscope instead.")]
public static bool isGyroAvailable { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public static LocationService location { get; }
Property Value
Declaration
public static Vector3 mousePosition { get; }
Property Value
Declaration
public static bool mousePresent { get; }
Property Value
Declaration
public static Vector2 mouseScrollDelta { get; }
Property Value
Declaration
public static bool multiTouchEnabled { get; set; }
Property Value
Declaration
public static bool simulateMouseWithTouches { get; set; }
Property Value
Declaration
public static bool stylusTouchSupported { get; }
Property Value
Declaration
public static int touchCount { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public static Touch[] touches { get; }
Property Value
Declaration
public static bool touchPressureSupported { get; }
Property Value
Declaration
public static bool touchSupported { get; }
Property Value
Methods
Declaration
public static AccelerationEvent GetAccelerationEvent(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
Declaration
public static float GetAxis(string axisName)
Parameters
Type |
Name |
Description |
String |
axisName |
|
Returns
Declaration
public static float GetAxisRaw(string axisName)
Parameters
Type |
Name |
Description |
String |
axisName |
|
Returns
Declaration
public static bool GetButton(string buttonName)
Parameters
Type |
Name |
Description |
String |
buttonName |
|
Returns
Declaration
public static bool GetButtonDown(string buttonName)
Parameters
Type |
Name |
Description |
String |
buttonName |
|
Returns
Declaration
public static bool GetButtonUp(string buttonName)
Parameters
Type |
Name |
Description |
String |
buttonName |
|
Returns
Declaration
public static string[] GetJoystickNames()
Returns
|
Improve this Doc
View Source
Declaration
public static bool GetKey(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
Declaration
public static bool GetKey(KeyCode key)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool GetKeyDown(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
Declaration
public static bool GetKeyDown(KeyCode key)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool GetKeyUp(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
Declaration
public static bool GetKeyUp(KeyCode key)
Parameters
Returns
Declaration
public static bool GetMouseButton(int button)
Parameters
Type |
Name |
Description |
Int32 |
button |
|
Returns
Declaration
public static bool GetMouseButtonDown(int button)
Parameters
Type |
Name |
Description |
Int32 |
button |
|
Returns
Declaration
public static bool GetMouseButtonUp(int button)
Parameters
Type |
Name |
Description |
Int32 |
button |
|
Returns
Declaration
public static Touch GetTouch(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
Declaration
public static bool IsJoystickPreconfigured(string joystickName)
Parameters
Type |
Name |
Description |
String |
joystickName |
|
Returns
Declaration
public static void ResetInputAxes()
Extension Methods