using System; using System.Runtime.CompilerServices; using UnityEngine.Scripting; namespace UnityEngine { // Token: 0x02000076 RID: 118 public sealed class Input { // Token: 0x06000841 RID: 2113 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern int mainGyroIndex_Internal(); // Token: 0x06000842 RID: 2114 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool GetKeyInt(int key); // Token: 0x06000843 RID: 2115 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool GetKeyString(string name); // Token: 0x06000844 RID: 2116 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool GetKeyUpInt(int key); // Token: 0x06000845 RID: 2117 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool GetKeyUpString(string name); // Token: 0x06000846 RID: 2118 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool GetKeyDownInt(int key); // Token: 0x06000847 RID: 2119 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern bool GetKeyDownString(string name); // Token: 0x06000848 RID: 2120 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern float GetAxis(string axisName); // Token: 0x06000849 RID: 2121 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern float GetAxisRaw(string axisName); // Token: 0x0600084A RID: 2122 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern bool GetButton(string buttonName); // Token: 0x170001E4 RID: 484 // (get) Token: 0x0600084B RID: 2123 // (set) Token: 0x0600084C RID: 2124 public static extern bool compensateSensors { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] set; } // Token: 0x170001E5 RID: 485 // (get) Token: 0x0600084D RID: 2125 [Obsolete("isGyroAvailable property is deprecated. Please use SystemInfo.supportsGyroscope instead.")] public static extern bool isGyroAvailable { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001E6 RID: 486 // (get) Token: 0x0600084E RID: 2126 RVA: 0x0000ABE0 File Offset: 0x00008DE0 public static Gyroscope gyro { get { if (Input.m_MainGyro == null) { Input.m_MainGyro = new Gyroscope(Input.mainGyroIndex_Internal()); } return Input.m_MainGyro; } } // Token: 0x0600084F RID: 2127 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern bool GetButtonDown(string buttonName); // Token: 0x06000850 RID: 2128 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern bool GetButtonUp(string buttonName); // Token: 0x06000851 RID: 2129 RVA: 0x0000AC14 File Offset: 0x00008E14 public static bool GetKey(string name) { return Input.GetKeyString(name); } // Token: 0x06000852 RID: 2130 RVA: 0x0000AC30 File Offset: 0x00008E30 public static bool GetKey(KeyCode key) { return Input.GetKeyInt((int)key); } // Token: 0x06000853 RID: 2131 RVA: 0x0000AC4C File Offset: 0x00008E4C public static bool GetKeyDown(string name) { return Input.GetKeyDownString(name); } // Token: 0x06000854 RID: 2132 RVA: 0x0000AC68 File Offset: 0x00008E68 public static bool GetKeyDown(KeyCode key) { return Input.GetKeyDownInt((int)key); } // Token: 0x06000855 RID: 2133 RVA: 0x0000AC84 File Offset: 0x00008E84 public static bool GetKeyUp(string name) { return Input.GetKeyUpString(name); } // Token: 0x06000856 RID: 2134 RVA: 0x0000ACA0 File Offset: 0x00008EA0 public static bool GetKeyUp(KeyCode key) { return Input.GetKeyUpInt((int)key); } // Token: 0x06000857 RID: 2135 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern string[] GetJoystickNames(); // Token: 0x06000858 RID: 2136 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern bool GetMouseButton(int button); // Token: 0x06000859 RID: 2137 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern bool GetMouseButtonDown(int button); // Token: 0x0600085A RID: 2138 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern bool GetMouseButtonUp(int button); // Token: 0x0600085B RID: 2139 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] public static extern void ResetInputAxes(); // Token: 0x170001E7 RID: 487 // (get) Token: 0x0600085C RID: 2140 RVA: 0x0000ACBC File Offset: 0x00008EBC public static Vector3 mousePosition { get { Vector3 vector; Input.INTERNAL_get_mousePosition(out vector); return vector; } } // Token: 0x0600085D RID: 2141 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_get_mousePosition(out Vector3 value); // Token: 0x170001E8 RID: 488 // (get) Token: 0x0600085E RID: 2142 RVA: 0x0000ACDC File Offset: 0x00008EDC public static Vector2 mouseScrollDelta { get { Vector2 vector; Input.INTERNAL_get_mouseScrollDelta(out vector); return vector; } } // Token: 0x0600085F RID: 2143 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_get_mouseScrollDelta(out Vector2 value); // Token: 0x170001E9 RID: 489 // (get) Token: 0x06000860 RID: 2144 public static extern bool mousePresent { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001EA RID: 490 // (get) Token: 0x06000861 RID: 2145 // (set) Token: 0x06000862 RID: 2146 public static extern bool simulateMouseWithTouches { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] set; } // Token: 0x170001EB RID: 491 // (get) Token: 0x06000863 RID: 2147 public static extern bool anyKey { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001EC RID: 492 // (get) Token: 0x06000864 RID: 2148 public static extern bool anyKeyDown { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001ED RID: 493 // (get) Token: 0x06000865 RID: 2149 public static extern string inputString { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001EE RID: 494 // (get) Token: 0x06000866 RID: 2150 RVA: 0x0000ACFC File Offset: 0x00008EFC public static Vector3 acceleration { get { Vector3 vector; Input.INTERNAL_get_acceleration(out vector); return vector; } } // Token: 0x06000867 RID: 2151 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_get_acceleration(out Vector3 value); // Token: 0x170001EF RID: 495 // (get) Token: 0x06000868 RID: 2152 RVA: 0x0000AD1C File Offset: 0x00008F1C public static AccelerationEvent[] accelerationEvents { get { int accelerationEventCount = Input.accelerationEventCount; AccelerationEvent[] array = new AccelerationEvent[accelerationEventCount]; for (int i = 0; i < accelerationEventCount; i++) { array[i] = Input.GetAccelerationEvent(i); } return array; } } // Token: 0x06000869 RID: 2153 RVA: 0x0000AD64 File Offset: 0x00008F64 public static AccelerationEvent GetAccelerationEvent(int index) { AccelerationEvent accelerationEvent; Input.INTERNAL_CALL_GetAccelerationEvent(index, out accelerationEvent); return accelerationEvent; } // Token: 0x0600086A RID: 2154 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_GetAccelerationEvent(int index, out AccelerationEvent value); // Token: 0x170001F0 RID: 496 // (get) Token: 0x0600086B RID: 2155 public static extern int accelerationEventCount { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001F1 RID: 497 // (get) Token: 0x0600086C RID: 2156 RVA: 0x0000AD84 File Offset: 0x00008F84 public static Touch[] touches { get { int touchCount = Input.touchCount; Touch[] array = new Touch[touchCount]; for (int i = 0; i < touchCount; i++) { array[i] = Input.GetTouch(i); } return array; } } // Token: 0x0600086D RID: 2157 RVA: 0x0000ADCC File Offset: 0x00008FCC public static Touch GetTouch(int index) { Touch touch; Input.INTERNAL_CALL_GetTouch(index, out touch); return touch; } // Token: 0x0600086E RID: 2158 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_GetTouch(int index, out Touch value); // Token: 0x170001F2 RID: 498 // (get) Token: 0x0600086F RID: 2159 public static extern int touchCount { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001F3 RID: 499 // (get) Token: 0x06000870 RID: 2160 // (set) Token: 0x06000871 RID: 2161 [Obsolete("eatKeyPressOnTextFieldFocus property is deprecated, and only provided to support legacy behavior.")] public static extern bool eatKeyPressOnTextFieldFocus { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] set; } // Token: 0x170001F4 RID: 500 // (get) Token: 0x06000872 RID: 2162 public static extern bool touchPressureSupported { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001F5 RID: 501 // (get) Token: 0x06000873 RID: 2163 public static extern bool stylusTouchSupported { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001F6 RID: 502 // (get) Token: 0x06000874 RID: 2164 public static extern bool touchSupported { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001F7 RID: 503 // (get) Token: 0x06000875 RID: 2165 // (set) Token: 0x06000876 RID: 2166 public static extern bool multiTouchEnabled { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] set; } // Token: 0x170001F8 RID: 504 // (get) Token: 0x06000877 RID: 2167 RVA: 0x0000ADEC File Offset: 0x00008FEC public static LocationService location { get { if (Input.locationServiceInstance == null) { Input.locationServiceInstance = new LocationService(); } return Input.locationServiceInstance; } } // Token: 0x170001F9 RID: 505 // (get) Token: 0x06000878 RID: 2168 RVA: 0x0000AE1C File Offset: 0x0000901C public static Compass compass { get { if (Input.compassInstance == null) { Input.compassInstance = new Compass(); } return Input.compassInstance; } } // Token: 0x170001FA RID: 506 // (get) Token: 0x06000879 RID: 2169 public static extern DeviceOrientation deviceOrientation { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001FB RID: 507 // (get) Token: 0x0600087A RID: 2170 // (set) Token: 0x0600087B RID: 2171 public static extern IMECompositionMode imeCompositionMode { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] set; } // Token: 0x170001FC RID: 508 // (get) Token: 0x0600087C RID: 2172 public static extern string compositionString { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001FD RID: 509 // (get) Token: 0x0600087D RID: 2173 public static extern bool imeIsSelected { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x170001FE RID: 510 // (get) Token: 0x0600087E RID: 2174 RVA: 0x0000AE4C File Offset: 0x0000904C // (set) Token: 0x0600087F RID: 2175 RVA: 0x0000AE6C File Offset: 0x0000906C public static Vector2 compositionCursorPos { get { Vector2 vector; Input.INTERNAL_get_compositionCursorPos(out vector); return vector; } set { Input.INTERNAL_set_compositionCursorPos(ref value); } } // Token: 0x06000880 RID: 2176 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_get_compositionCursorPos(out Vector2 value); // Token: 0x06000881 RID: 2177 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_set_compositionCursorPos(ref Vector2 value); // Token: 0x170001FF RID: 511 // (get) Token: 0x06000882 RID: 2178 // (set) Token: 0x06000883 RID: 2179 public static extern bool backButtonLeavesApp { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] set; } // Token: 0x040000B7 RID: 183 private static Gyroscope m_MainGyro = null; // Token: 0x040000B8 RID: 184 private static LocationService locationServiceInstance; // Token: 0x040000B9 RID: 185 private static Compass compassInstance; } }