185 lines
5.2 KiB
C#
185 lines
5.2 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x02000071 RID: 113
|
|
public sealed class Gyroscope
|
|
{
|
|
// Token: 0x06000811 RID: 2065 RVA: 0x0000A910 File Offset: 0x00008B10
|
|
internal Gyroscope(int index)
|
|
{
|
|
this.m_GyroIndex = index;
|
|
}
|
|
|
|
// Token: 0x06000812 RID: 2066 RVA: 0x0000A920 File Offset: 0x00008B20
|
|
private static Vector3 rotationRate_Internal(int idx)
|
|
{
|
|
Vector3 vector;
|
|
Gyroscope.INTERNAL_CALL_rotationRate_Internal(idx, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06000813 RID: 2067
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_rotationRate_Internal(int idx, out Vector3 value);
|
|
|
|
// Token: 0x06000814 RID: 2068 RVA: 0x0000A940 File Offset: 0x00008B40
|
|
private static Vector3 rotationRateUnbiased_Internal(int idx)
|
|
{
|
|
Vector3 vector;
|
|
Gyroscope.INTERNAL_CALL_rotationRateUnbiased_Internal(idx, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06000815 RID: 2069
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_rotationRateUnbiased_Internal(int idx, out Vector3 value);
|
|
|
|
// Token: 0x06000816 RID: 2070 RVA: 0x0000A960 File Offset: 0x00008B60
|
|
private static Vector3 gravity_Internal(int idx)
|
|
{
|
|
Vector3 vector;
|
|
Gyroscope.INTERNAL_CALL_gravity_Internal(idx, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06000817 RID: 2071
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_gravity_Internal(int idx, out Vector3 value);
|
|
|
|
// Token: 0x06000818 RID: 2072 RVA: 0x0000A980 File Offset: 0x00008B80
|
|
private static Vector3 userAcceleration_Internal(int idx)
|
|
{
|
|
Vector3 vector;
|
|
Gyroscope.INTERNAL_CALL_userAcceleration_Internal(idx, out vector);
|
|
return vector;
|
|
}
|
|
|
|
// Token: 0x06000819 RID: 2073
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_userAcceleration_Internal(int idx, out Vector3 value);
|
|
|
|
// Token: 0x0600081A RID: 2074 RVA: 0x0000A9A0 File Offset: 0x00008BA0
|
|
private static Quaternion attitude_Internal(int idx)
|
|
{
|
|
Quaternion quaternion;
|
|
Gyroscope.INTERNAL_CALL_attitude_Internal(idx, out quaternion);
|
|
return quaternion;
|
|
}
|
|
|
|
// Token: 0x0600081B RID: 2075
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void INTERNAL_CALL_attitude_Internal(int idx, out Quaternion value);
|
|
|
|
// Token: 0x0600081C RID: 2076
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern bool getEnabled_Internal(int idx);
|
|
|
|
// Token: 0x0600081D RID: 2077
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void setEnabled_Internal(int idx, bool enabled);
|
|
|
|
// Token: 0x0600081E RID: 2078
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern float getUpdateInterval_Internal(int idx);
|
|
|
|
// Token: 0x0600081F RID: 2079
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern void setUpdateInterval_Internal(int idx, float interval);
|
|
|
|
// Token: 0x170001CE RID: 462
|
|
// (get) Token: 0x06000820 RID: 2080 RVA: 0x0000A9C0 File Offset: 0x00008BC0
|
|
public Vector3 rotationRate
|
|
{
|
|
get
|
|
{
|
|
return Gyroscope.rotationRate_Internal(this.m_GyroIndex);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001CF RID: 463
|
|
// (get) Token: 0x06000821 RID: 2081 RVA: 0x0000A9E0 File Offset: 0x00008BE0
|
|
public Vector3 rotationRateUnbiased
|
|
{
|
|
get
|
|
{
|
|
return Gyroscope.rotationRateUnbiased_Internal(this.m_GyroIndex);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001D0 RID: 464
|
|
// (get) Token: 0x06000822 RID: 2082 RVA: 0x0000AA00 File Offset: 0x00008C00
|
|
public Vector3 gravity
|
|
{
|
|
get
|
|
{
|
|
return Gyroscope.gravity_Internal(this.m_GyroIndex);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001D1 RID: 465
|
|
// (get) Token: 0x06000823 RID: 2083 RVA: 0x0000AA20 File Offset: 0x00008C20
|
|
public Vector3 userAcceleration
|
|
{
|
|
get
|
|
{
|
|
return Gyroscope.userAcceleration_Internal(this.m_GyroIndex);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001D2 RID: 466
|
|
// (get) Token: 0x06000824 RID: 2084 RVA: 0x0000AA40 File Offset: 0x00008C40
|
|
public Quaternion attitude
|
|
{
|
|
get
|
|
{
|
|
return Gyroscope.attitude_Internal(this.m_GyroIndex);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001D3 RID: 467
|
|
// (get) Token: 0x06000825 RID: 2085 RVA: 0x0000AA60 File Offset: 0x00008C60
|
|
// (set) Token: 0x06000826 RID: 2086 RVA: 0x0000AA80 File Offset: 0x00008C80
|
|
public bool enabled
|
|
{
|
|
get
|
|
{
|
|
return Gyroscope.getEnabled_Internal(this.m_GyroIndex);
|
|
}
|
|
set
|
|
{
|
|
Gyroscope.setEnabled_Internal(this.m_GyroIndex, value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x170001D4 RID: 468
|
|
// (get) Token: 0x06000827 RID: 2087 RVA: 0x0000AA90 File Offset: 0x00008C90
|
|
// (set) Token: 0x06000828 RID: 2088 RVA: 0x0000AAB0 File Offset: 0x00008CB0
|
|
public float updateInterval
|
|
{
|
|
get
|
|
{
|
|
return Gyroscope.getUpdateInterval_Internal(this.m_GyroIndex);
|
|
}
|
|
set
|
|
{
|
|
Gyroscope.setUpdateInterval_Internal(this.m_GyroIndex, value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x040000AB RID: 171
|
|
private int m_GyroIndex;
|
|
}
|
|
}
|