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

306 lines
16 KiB
C#

using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;
namespace Obi.CrossPlatformInput.PlatformSpecific
{
// Token: 0x02000517 RID: 1303
public class MobileInput : VirtualInput
{
// Token: 0x0600930B RID: 37643 RVA: 0x0025DA58 File Offset: 0x0025BC58
[CallerCount(5)]
[CachedScanResults(RefRangeStart = 614237, RefRangeEnd = 614242, XrefRangeStart = 614229, XrefRangeEnd = 614237, 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: 0x0600930C RID: 37644 RVA: 0x0025DAB4 File Offset: 0x0025BCB4
[CallerCount(5)]
[CachedScanResults(RefRangeStart = 614250, RefRangeEnd = 614255, XrefRangeStart = 614242, XrefRangeEnd = 614250, 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: 0x0600930D RID: 37645 RVA: 0x0025DB10 File Offset: 0x0025BD10
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614255, XrefRangeEnd = 614262, 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: 0x0600930E RID: 37646 RVA: 0x0025DB98 File Offset: 0x0025BD98
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614262, XrefRangeEnd = 614271, 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: 0x0600930F RID: 37647 RVA: 0x0025DBFC File Offset: 0x0025BDFC
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614271, XrefRangeEnd = 614280, 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: 0x06009310 RID: 37648 RVA: 0x0025DC60 File Offset: 0x0025BE60
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614280, XrefRangeEnd = 614287, 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: 0x06009311 RID: 37649 RVA: 0x0025DCC4 File Offset: 0x0025BEC4
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614287, XrefRangeEnd = 614294, 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: 0x06009312 RID: 37650 RVA: 0x0025DD28 File Offset: 0x0025BF28
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614294, XrefRangeEnd = 614301, 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: 0x06009313 RID: 37651 RVA: 0x0025DD8C File Offset: 0x0025BF8C
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614301, XrefRangeEnd = 614308, 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: 0x06009314 RID: 37652 RVA: 0x0025DE04 File Offset: 0x0025C004
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614308, XrefRangeEnd = 614317, 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: 0x06009315 RID: 37653 RVA: 0x0025DE78 File Offset: 0x0025C078
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614317, XrefRangeEnd = 614326, 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: 0x06009316 RID: 37654 RVA: 0x0025DEEC File Offset: 0x0025C0EC
[CallerCount(0)]
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 614326, XrefRangeEnd = 614333, 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: 0x06009317 RID: 37655 RVA: 0x0025DF60 File Offset: 0x0025C160
[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: 0x06009318 RID: 37656 RVA: 0x0025DFBC File Offset: 0x0025C1BC
[CallerCount(2)]
[CachedScanResults(RefRangeStart = 614334, RefRangeEnd = 614336, XrefRangeStart = 614333, XrefRangeEnd = 614334, 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: 0x06009319 RID: 37657 RVA: 0x0025E008 File Offset: 0x0025C208
// 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, 100674751);
MobileInput.NativeMethodInfoPtr_AddAxes_Private_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674752);
MobileInput.NativeMethodInfoPtr_GetAxis_Public_Virtual_Single_String_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674753);
MobileInput.NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674754);
MobileInput.NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674755);
MobileInput.NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674756);
MobileInput.NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674757);
MobileInput.NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674758);
MobileInput.NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674759);
MobileInput.NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674760);
MobileInput.NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674761);
MobileInput.NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674762);
MobileInput.NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674763);
MobileInput.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MobileInput>.NativeClassPtr, 100674764);
}
// Token: 0x0600931A RID: 37658 RVA: 0x0025E150 File Offset: 0x0025C350
public MobileInput(IntPtr pointer)
: base(pointer)
{
}
// Token: 0x0400621C RID: 25116
private static readonly IntPtr NativeMethodInfoPtr_AddButton_Private_Void_String_0;
// Token: 0x0400621D RID: 25117
private static readonly IntPtr NativeMethodInfoPtr_AddAxes_Private_Void_String_0;
// Token: 0x0400621E RID: 25118
private static readonly IntPtr NativeMethodInfoPtr_GetAxis_Public_Virtual_Single_String_Boolean_0;
// Token: 0x0400621F RID: 25119
private static readonly IntPtr NativeMethodInfoPtr_SetButtonDown_Public_Virtual_Void_String_0;
// Token: 0x04006220 RID: 25120
private static readonly IntPtr NativeMethodInfoPtr_SetButtonUp_Public_Virtual_Void_String_0;
// Token: 0x04006221 RID: 25121
private static readonly IntPtr NativeMethodInfoPtr_SetAxisPositive_Public_Virtual_Void_String_0;
// Token: 0x04006222 RID: 25122
private static readonly IntPtr NativeMethodInfoPtr_SetAxisNegative_Public_Virtual_Void_String_0;
// Token: 0x04006223 RID: 25123
private static readonly IntPtr NativeMethodInfoPtr_SetAxisZero_Public_Virtual_Void_String_0;
// Token: 0x04006224 RID: 25124
private static readonly IntPtr NativeMethodInfoPtr_SetAxis_Public_Virtual_Void_String_Single_0;
// Token: 0x04006225 RID: 25125
private static readonly IntPtr NativeMethodInfoPtr_GetButtonDown_Public_Virtual_Boolean_String_0;
// Token: 0x04006226 RID: 25126
private static readonly IntPtr NativeMethodInfoPtr_GetButtonUp_Public_Virtual_Boolean_String_0;
// Token: 0x04006227 RID: 25127
private static readonly IntPtr NativeMethodInfoPtr_GetButton_Public_Virtual_Boolean_String_0;
// Token: 0x04006228 RID: 25128
private static readonly IntPtr NativeMethodInfoPtr_MousePosition_Public_Virtual_Vector3_0;
// Token: 0x04006229 RID: 25129
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
}