Files
NobetaSource/Interop/Assembly-CSharp/Obi/CrossPlatformInput/PlatformSpecific/MobileInput.cs
2023-09-06 22:09:22 +02:00

306 lines
16 KiB
C#

using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;
namespace Obi.CrossPlatformInput.PlatformSpecific
{
// Token: 0x02000520 RID: 1312
public class MobileInput : VirtualInput
{
// Token: 0x060093BB RID: 37819 RVA: 0x0026065C File Offset: 0x0025E85C
[CallerCount(5)]
[CachedScanResults(RefRangeStart = 631968, RefRangeEnd = 631973, XrefRangeStart = 631960, XrefRangeEnd = 631968, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe void AddButton(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MobileInput.NativeMethodInfoPtr_AddButton_Private_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
}
// Token: 0x060093BC RID: 37820 RVA: 0x002606B8 File Offset: 0x0025E8B8
[CallerCount(5)]
[CachedScanResults(RefRangeStart = 631981, RefRangeEnd = 631986, XrefRangeStart = 631973, XrefRangeEnd = 631981, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe void AddAxes(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MobileInput.NativeMethodInfoPtr_AddAxes_Private_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
}
// Token: 0x060093BD RID: 37821 RVA: 0x00260714 File Offset: 0x0025E914
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 631986, XrefRangeEnd = 631993, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override float GetAxis(string name, bool raw)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
IntPtr* ptr;
checked
{
ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
}
ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref raw;
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_GetAxis_Public_Virtual_Single_String_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
return *IL2CPP.il2cpp_object_unbox(intPtr);
}
// Token: 0x060093BE RID: 37822 RVA: 0x0026079C File Offset: 0x0025E99C
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 631993, XrefRangeEnd = 632002, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override void SetButtonDown(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
}
// Token: 0x060093BF RID: 37823 RVA: 0x00260800 File Offset: 0x0025EA00
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 632002, XrefRangeEnd = 632011, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override void SetButtonUp(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
}
// Token: 0x060093C0 RID: 37824 RVA: 0x00260864 File Offset: 0x0025EA64
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 632011, XrefRangeEnd = 632018, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override void SetAxisPositive(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
}
// Token: 0x060093C1 RID: 37825 RVA: 0x002608C8 File Offset: 0x0025EAC8
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 632018, XrefRangeEnd = 632025, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override void SetAxisNegative(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
}
// Token: 0x060093C2 RID: 37826 RVA: 0x0026092C File Offset: 0x0025EB2C
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 632025, XrefRangeEnd = 632032, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override void SetAxisZero(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
}
// Token: 0x060093C3 RID: 37827 RVA: 0x00260990 File Offset: 0x0025EB90
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 632032, XrefRangeEnd = 632039, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override void SetAxis(string name, float value)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
IntPtr* ptr;
checked
{
ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
}
ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref value;
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
// Token: 0x060093C4 RID: 37828 RVA: 0x00260A08 File Offset: 0x0025EC08
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 632039, XrefRangeEnd = 632048, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override bool GetButtonDown(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
return *IL2CPP.il2cpp_object_unbox(intPtr);
}
}
// Token: 0x060093C5 RID: 37829 RVA: 0x00260A7C File Offset: 0x0025EC7C
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 632048, XrefRangeEnd = 632057, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override bool GetButtonUp(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
return *IL2CPP.il2cpp_object_unbox(intPtr);
}
}
// Token: 0x060093C6 RID: 37830 RVA: 0x00260AF0 File Offset: 0x0025ECF0
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 632057, XrefRangeEnd = 632064, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe override bool GetButton(string name)
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
checked
{
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
*ptr = IL2CPP.ManagedStringToIl2Cpp(name);
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
return *IL2CPP.il2cpp_object_unbox(intPtr);
}
}
// Token: 0x060093C7 RID: 37831 RVA: 0x00260B64 File Offset: 0x0025ED64
[CallerCount(0)]
public unsafe override Vector3 MousePosition()
{
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
IntPtr* ptr = null;
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MobileInput.NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
return *IL2CPP.il2cpp_object_unbox(intPtr);
}
// Token: 0x060093C8 RID: 37832 RVA: 0x00260BC0 File Offset: 0x0025EDC0
[CallerCount(2)]
[CachedScanResults(RefRangeStart = 632065, RefRangeEnd = 632067, XrefRangeStart = 632064, XrefRangeEnd = 632065, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
public unsafe MobileInput()
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<MobileInput>.NativeClassPtr))
{
IntPtr* ptr = null;
IntPtr intPtr2;
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MobileInput.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
}
// Token: 0x060093C9 RID: 37833 RVA: 0x00260C0C File Offset: 0x0025EE0C
// Note: this type is marked as 'beforefieldinit'.
static MobileInput()
{
Il2CppClassPointerStore<MobileInput>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi.CrossPlatformInput.PlatformSpecific", "MobileInput");
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<MobileInput>.NativeClassPtr);
MobileInput.NativeMethodInfoPtr_AddButton_Private_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674801);
MobileInput.NativeMethodInfoPtr_AddAxes_Private_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674802);
MobileInput.NativeMethodInfoPtr_GetAxis_Public_Virtual_Single_String_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674803);
MobileInput.NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674804);
MobileInput.NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674805);
MobileInput.NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674806);
MobileInput.NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674807);
MobileInput.NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674808);
MobileInput.NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674809);
MobileInput.NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674810);
MobileInput.NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674811);
MobileInput.NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674812);
MobileInput.NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674813);
MobileInput.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674814);
}
// Token: 0x060093CA RID: 37834 RVA: 0x00260D54 File Offset: 0x0025EF54
public MobileInput(IntPtr pointer)
: base(pointer)
{
}
// Token: 0x04006290 RID: 25232
private static readonly IntPtr NativeMethodInfoPtr_AddButton_Private_Void_String_0;
// Token: 0x04006291 RID: 25233
private static readonly IntPtr NativeMethodInfoPtr_AddAxes_Private_Void_String_0;
// Token: 0x04006292 RID: 25234
private static readonly IntPtr NativeMethodInfoPtr_GetAxis_Public_Virtual_Single_String_Boolean_0;
// Token: 0x04006293 RID: 25235
private static readonly IntPtr NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0;
// Token: 0x04006294 RID: 25236
private static readonly IntPtr NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0;
// Token: 0x04006295 RID: 25237
private static readonly IntPtr NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0;
// Token: 0x04006296 RID: 25238
private static readonly IntPtr NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0;
// Token: 0x04006297 RID: 25239
private static readonly IntPtr NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0;
// Token: 0x04006298 RID: 25240
private static readonly IntPtr NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0;
// Token: 0x04006299 RID: 25241
private static readonly IntPtr NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0;
// Token: 0x0400629A RID: 25242
private static readonly IntPtr NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0;
// Token: 0x0400629B RID: 25243
private static readonly IntPtr NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0;
// Token: 0x0400629C RID: 25244
private static readonly IntPtr NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0;
// Token: 0x0400629D RID: 25245
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
}