Add v1.0.3.1

This commit is contained in:
2023-09-06 22:00:49 +02:00
commit 3aebbbf8f0
2051 changed files with 757425 additions and 0 deletions

View File

@@ -0,0 +1,99 @@
using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.EventSystems;
namespace Obi.CrossPlatformInput
{
// Token: 0x020004F2 RID: 1266
[Token(Token = "0x20004F2")]
public class AxisTouchButton : MonoBehaviour, IPointerDownHandler, IEventSystemHandler, IPointerUpHandler
{
// Token: 0x06002C4B RID: 11339 RVA: 0x0005FF20 File Offset: 0x0005E120
[Token(Token = "0x6002C4B")]
[Address(RVA = "0x8D2A20", Offset = "0x8D1820", VA = "0x1808D2A20")]
private void OnEnable()
{
bool flag = CrossPlatformInputManager.AxisExists(this.axisName);
string text = this.axisName;
if (flag)
{
CrossPlatformInputManager.VirtualAxis virtualAxis = CrossPlatformInputManager.VirtualAxisReference(text);
this.m_Axis = virtualAxis;
}
CrossPlatformInputManager.VirtualAxis virtualAxis2 = new CrossPlatformInputManager.VirtualAxis(text);
this.m_Axis = virtualAxis2;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_Axis);
this.FindPairedButton();
}
// Token: 0x06002C4C RID: 11340 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C4C")]
[Address(RVA = "0x8D2840", Offset = "0x8D1640", VA = "0x1808D2840")]
private void FindPairedButton()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C4D RID: 11341 RVA: 0x0005FF74 File Offset: 0x0005E174
[Token(Token = "0x6002C4D")]
[Address(RVA = "0x8D2A00", Offset = "0x8D1800", VA = "0x1808D2A00")]
private void OnDisable()
{
this.m_Axis.Remove();
}
// Token: 0x06002C4E RID: 11342 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C4E")]
[Address(RVA = "0x8D2B40", Offset = "0x8D1940", VA = "0x1808D2B40", Slot = "4")]
public void OnPointerDown(PointerEventData data)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C4F RID: 11343 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C4F")]
[Address(RVA = "0x8D2C20", Offset = "0x8D1A20", VA = "0x1808D2C20", Slot = "5")]
public void OnPointerUp(PointerEventData data)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C50 RID: 11344 RVA: 0x0005FF94 File Offset: 0x0005E194
[Token(Token = "0x6002C50")]
[Address(RVA = "0x8D2C80", Offset = "0x8D1A80", VA = "0x1808D2C80")]
public AxisTouchButton()
{
}
// Token: 0x040034B3 RID: 13491
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40034B3")]
public string axisName = "Horizontal";
// Token: 0x040034B4 RID: 13492
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40034B4")]
public float axisValue = 1f;
// Token: 0x040034B5 RID: 13493
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x40034B5")]
public float responseSpeed = 3f;
// Token: 0x040034B6 RID: 13494
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40034B6")]
public float returnToCentreSpeed = 3f;
// Token: 0x040034B7 RID: 13495
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40034B7")]
private AxisTouchButton m_PairedWith;
// Token: 0x040034B8 RID: 13496
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40034B8")]
private CrossPlatformInputManager.VirtualAxis m_Axis;
}
}

View File

@@ -0,0 +1,79 @@
using System;
using Cpp2IlInjected;
using UnityEngine;
namespace Obi.CrossPlatformInput
{
// Token: 0x020004F3 RID: 1267
[Token(Token = "0x20004F3")]
public class ButtonHandler : MonoBehaviour
{
// Token: 0x06002C51 RID: 11345 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C51")]
[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
private void OnEnable()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C52 RID: 11346 RVA: 0x0005FFD4 File Offset: 0x0005E1D4
[Token(Token = "0x6002C52")]
[Address(RVA = "0x1348970", Offset = "0x1347770", VA = "0x181348970")]
public void SetDownState()
{
CrossPlatformInputManager.SetButtonDown(this.Name);
}
// Token: 0x06002C53 RID: 11347 RVA: 0x0005FFEC File Offset: 0x0005E1EC
[Token(Token = "0x6002C53")]
[Address(RVA = "0x13489D0", Offset = "0x13477D0", VA = "0x1813489D0")]
public void SetUpState()
{
CrossPlatformInputManager.SetButtonUp(this.Name);
}
// Token: 0x06002C54 RID: 11348 RVA: 0x00060004 File Offset: 0x0005E204
[Token(Token = "0x6002C54")]
[Address(RVA = "0x1348910", Offset = "0x1347710", VA = "0x181348910")]
public void SetAxisPositiveState()
{
CrossPlatformInputManager.SetAxisPositive(this.Name);
}
// Token: 0x06002C55 RID: 11349 RVA: 0x0006001C File Offset: 0x0005E21C
[Token(Token = "0x6002C55")]
[Address(RVA = "0x13488B0", Offset = "0x13476B0", VA = "0x1813488B0")]
public void SetAxisNeutralState()
{
CrossPlatformInputManager.SetAxisZero(this.Name);
}
// Token: 0x06002C56 RID: 11350 RVA: 0x00060034 File Offset: 0x0005E234
[Token(Token = "0x6002C56")]
[Address(RVA = "0x1348850", Offset = "0x1347650", VA = "0x181348850")]
public void SetAxisNegativeState()
{
CrossPlatformInputManager.SetAxisNegative(this.Name);
}
// Token: 0x06002C57 RID: 11351 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C57")]
[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
public void Update()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C58 RID: 11352 RVA: 0x0006004C File Offset: 0x0005E24C
[Token(Token = "0x6002C58")]
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
public ButtonHandler()
{
}
// Token: 0x040034B9 RID: 13497
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40034B9")]
public string Name;
}
}

View File

@@ -0,0 +1,549 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
using UnityEngine;
namespace Obi.CrossPlatformInput
{
// Token: 0x020004F4 RID: 1268
[Token(Token = "0x20004F4")]
public static class CrossPlatformInputManager
{
// Token: 0x06002C59 RID: 11353 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C59")]
[Address(RVA = "0x13C0BE0", Offset = "0x13BF9E0", VA = "0x1813C0BE0")]
static CrossPlatformInputManager()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C5A RID: 11354 RVA: 0x00060060 File Offset: 0x0005E260
[Token(Token = "0x6002C5A")]
[Address(RVA = "0x13C0970", Offset = "0x13BF770", VA = "0x1813C0970")]
public static void SwitchActiveInputMethod(CrossPlatformInputManager.ActiveInputMethod activeInputMethod)
{
if (activeInputMethod == CrossPlatformInputManager.ActiveInputMethod.Hardware)
{
CrossPlatformInputManager.activeInput = CrossPlatformInputManager.s_HardwareInput;
}
if (activeInputMethod == CrossPlatformInputManager.ActiveInputMethod.Touch)
{
CrossPlatformInputManager.activeInput = CrossPlatformInputManager.s_TouchInput;
}
}
// Token: 0x06002C5B RID: 11355 RVA: 0x0006008C File Offset: 0x0005E28C
[Token(Token = "0x6002C5B")]
[Address(RVA = "0x13C0010", Offset = "0x13BEE10", VA = "0x1813C0010")]
public static bool AxisExists(string name)
{
return CrossPlatformInputManager.activeInput.AxisExists(name);
}
// Token: 0x06002C5C RID: 11356 RVA: 0x000600AC File Offset: 0x0005E2AC
[Token(Token = "0x6002C5C")]
[Address(RVA = "0x13C0090", Offset = "0x13BEE90", VA = "0x1813C0090")]
public static bool ButtonExists(string name)
{
return CrossPlatformInputManager.activeInput.ButtonExists(name);
}
// Token: 0x06002C5D RID: 11357 RVA: 0x000600CC File Offset: 0x0005E2CC
[Token(Token = "0x6002C5D")]
[Address(RVA = "0x13C03E0", Offset = "0x13BF1E0", VA = "0x1813C03E0")]
public static void RegisterVirtualAxis(CrossPlatformInputManager.VirtualAxis axis)
{
CrossPlatformInputManager.activeInput.RegisterVirtualAxis(axis);
}
// Token: 0x06002C5E RID: 11358 RVA: 0x000600EC File Offset: 0x0005E2EC
[Token(Token = "0x6002C5E")]
[Address(RVA = "0x13C0460", Offset = "0x13BF260", VA = "0x1813C0460")]
public static void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton button)
{
CrossPlatformInputManager.activeInput.RegisterVirtualButton(button);
}
// Token: 0x06002C5F RID: 11359 RVA: 0x0006010C File Offset: 0x0005E30C
[Token(Token = "0x6002C5F")]
[Address(RVA = "0x13C0A20", Offset = "0x13BF820", VA = "0x1813C0A20")]
public static void UnRegisterVirtualAxis(string name)
{
/*
An exception occurred when decompiling this method (06002C5F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.CrossPlatformInputManager::UnRegisterVirtualAxis(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{; IL_10:; stloc:ArgumentNullException(var_0_1A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("name"))); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1836
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1836
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1804
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
}
// Token: 0x06002C60 RID: 11360 RVA: 0x00060134 File Offset: 0x0005E334
[Token(Token = "0x6002C60")]
[Address(RVA = "0x13C0AE0", Offset = "0x13BF8E0", VA = "0x1813C0AE0")]
public static void UnRegisterVirtualButton(string name)
{
CrossPlatformInputManager.activeInput.UnRegisterVirtualButton(name);
}
// Token: 0x06002C61 RID: 11361 RVA: 0x00060154 File Offset: 0x0005E354
[Token(Token = "0x6002C61")]
[Address(RVA = "0x13C0B60", Offset = "0x13BF960", VA = "0x1813C0B60")]
public static CrossPlatformInputManager.VirtualAxis VirtualAxisReference(string name)
{
return CrossPlatformInputManager.activeInput.VirtualAxisReference(name);
}
// Token: 0x06002C62 RID: 11362 RVA: 0x00060174 File Offset: 0x0005E374
[Token(Token = "0x6002C62")]
[Address(RVA = "0x13C0170", Offset = "0x13BEF70", VA = "0x1813C0170")]
public static float GetAxis(string name)
{
int num = 0;
return CrossPlatformInputManager.GetAxis(name, num != 0);
}
// Token: 0x06002C63 RID: 11363 RVA: 0x0006018C File Offset: 0x0005E38C
[Token(Token = "0x6002C63")]
[Address(RVA = "0x13C0110", Offset = "0x13BEF10", VA = "0x1813C0110")]
public static float GetAxisRaw(string name)
{
return CrossPlatformInputManager.GetAxis(name, true);
}
// Token: 0x06002C64 RID: 11364 RVA: 0x000601A0 File Offset: 0x0005E3A0
[Token(Token = "0x6002C64")]
[Address(RVA = "0x13C01D0", Offset = "0x13BEFD0", VA = "0x1813C01D0")]
private static float GetAxis(string name, bool raw)
{
return CrossPlatformInputManager.activeInput.GetAxis(name, raw);
}
// Token: 0x06002C65 RID: 11365 RVA: 0x000601C0 File Offset: 0x0005E3C0
[Token(Token = "0x6002C65")]
[Address(RVA = "0x13C0360", Offset = "0x13BF160", VA = "0x1813C0360")]
public static bool GetButton(string name)
{
return CrossPlatformInputManager.activeInput.GetButton(name);
}
// Token: 0x06002C66 RID: 11366 RVA: 0x000601E0 File Offset: 0x0005E3E0
[Token(Token = "0x6002C66")]
[Address(RVA = "0x13C0260", Offset = "0x13BF060", VA = "0x1813C0260")]
public static bool GetButtonDown(string name)
{
return CrossPlatformInputManager.activeInput.GetButton(name);
}
// Token: 0x06002C67 RID: 11367 RVA: 0x00060200 File Offset: 0x0005E400
[Token(Token = "0x6002C67")]
[Address(RVA = "0x13C02E0", Offset = "0x13BF0E0", VA = "0x1813C02E0")]
public static bool GetButtonUp(string name)
{
return CrossPlatformInputManager.activeInput.GetButton(name);
}
// Token: 0x06002C68 RID: 11368 RVA: 0x00060220 File Offset: 0x0005E420
[Token(Token = "0x6002C68")]
[Address(RVA = "0x13C06F0", Offset = "0x13BF4F0", VA = "0x1813C06F0")]
public static void SetButtonDown(string name)
{
bool button = CrossPlatformInputManager.activeInput.GetButton(name);
}
// Token: 0x06002C69 RID: 11369 RVA: 0x00060240 File Offset: 0x0005E440
[Token(Token = "0x6002C69")]
[Address(RVA = "0x13C0770", Offset = "0x13BF570", VA = "0x1813C0770")]
public static void SetButtonUp(string name)
{
bool button = CrossPlatformInputManager.activeInput.GetButton(name);
}
// Token: 0x06002C6A RID: 11370 RVA: 0x00060260 File Offset: 0x0005E460
[Token(Token = "0x6002C6A")]
[Address(RVA = "0x13C0560", Offset = "0x13BF360", VA = "0x1813C0560")]
public static void SetAxisPositive(string name)
{
bool button = CrossPlatformInputManager.activeInput.GetButton(name);
}
// Token: 0x06002C6B RID: 11371 RVA: 0x00060280 File Offset: 0x0005E480
[Token(Token = "0x6002C6B")]
[Address(RVA = "0x13C04E0", Offset = "0x13BF2E0", VA = "0x1813C04E0")]
public static void SetAxisNegative(string name)
{
bool button = CrossPlatformInputManager.activeInput.GetButton(name);
}
// Token: 0x06002C6C RID: 11372 RVA: 0x000602A0 File Offset: 0x0005E4A0
[Token(Token = "0x6002C6C")]
[Address(RVA = "0x13C05E0", Offset = "0x13BF3E0", VA = "0x1813C05E0")]
public static void SetAxisZero(string name)
{
bool button = CrossPlatformInputManager.activeInput.GetButton(name);
}
// Token: 0x06002C6D RID: 11373 RVA: 0x000602C0 File Offset: 0x0005E4C0
[Token(Token = "0x6002C6D")]
[Address(RVA = "0x13C0660", Offset = "0x13BF460", VA = "0x1813C0660")]
public static void SetAxis(string name, float value)
{
bool button = CrossPlatformInputManager.activeInput.GetButton(name);
}
// Token: 0x17000314 RID: 788
// (get) Token: 0x06002C6E RID: 11374 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x17000314")]
public static Vector3 mousePosition
{
[Token(Token = "0x6002C6E")]
[Address(RVA = "0x13C0CB0", Offset = "0x13BFAB0", VA = "0x1813C0CB0")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x06002C6F RID: 11375 RVA: 0x000602E0 File Offset: 0x0005E4E0
[Token(Token = "0x6002C6F")]
[Address(RVA = "0x13C07F0", Offset = "0x13BF5F0", VA = "0x1813C07F0")]
public static void SetVirtualMousePositionX(float f)
{
CrossPlatformInputManager.activeInput.SetVirtualMousePositionX(f);
}
// Token: 0x06002C70 RID: 11376 RVA: 0x00060300 File Offset: 0x0005E500
[Token(Token = "0x6002C70")]
[Address(RVA = "0x13C0870", Offset = "0x13BF670", VA = "0x1813C0870")]
public static void SetVirtualMousePositionY(float f)
{
CrossPlatformInputManager.activeInput.SetVirtualMousePositionY(f);
}
// Token: 0x06002C71 RID: 11377 RVA: 0x00060320 File Offset: 0x0005E520
[Token(Token = "0x6002C71")]
[Address(RVA = "0x13C08F0", Offset = "0x13BF6F0", VA = "0x1813C08F0")]
public static void SetVirtualMousePositionZ(float f)
{
CrossPlatformInputManager.activeInput.SetVirtualMousePositionZ(f);
}
// Token: 0x040034BA RID: 13498
[Token(Token = "0x40034BA")]
private static VirtualInput activeInput;
// Token: 0x040034BB RID: 13499
[Token(Token = "0x40034BB")]
private static VirtualInput s_TouchInput;
// Token: 0x040034BC RID: 13500
[Token(Token = "0x40034BC")]
private static VirtualInput s_HardwareInput;
// Token: 0x020004F5 RID: 1269
[Token(Token = "0x20004F5")]
public enum ActiveInputMethod
{
// Token: 0x040034BE RID: 13502
[Token(Token = "0x40034BE")]
Hardware,
// Token: 0x040034BF RID: 13503
[Token(Token = "0x40034BF")]
Touch
}
// Token: 0x020004F6 RID: 1270
[Token(Token = "0x20004F6")]
public class VirtualAxis
{
// Token: 0x17000315 RID: 789
// (get) Token: 0x06002C72 RID: 11378 RVA: 0x00060340 File Offset: 0x0005E540
// (set) Token: 0x06002C73 RID: 11379 RVA: 0x00060354 File Offset: 0x0005E554
[Token(Token = "0x17000315")]
public string name
{
[Token(Token = "0x6002C72")]
[Address(RVA = "0x2B4010", Offset = "0x2B2E10", VA = "0x1802B4010")]
[CompilerGenerated]
get
{
return this.<name>k__BackingField;
}
[Token(Token = "0x6002C73")]
[Address(RVA = "0x385090", Offset = "0x383E90", VA = "0x180385090")]
[CompilerGenerated]
private set
{
/*
An exception occurred when decompiling this method (06002C73)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.CrossPlatformInputManager/VirtualAxis::set_name(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stfld:string(VirtualAxis::<name>k__BackingField, ldloc:VirtualAxis(this), ldloc:string(value)); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
}
}
// Token: 0x17000316 RID: 790
// (get) Token: 0x06002C74 RID: 11380 RVA: 0x00060368 File Offset: 0x0005E568
// (set) Token: 0x06002C75 RID: 11381 RVA: 0x0006037C File Offset: 0x0005E57C
[Token(Token = "0x17000316")]
public bool matchWithInputManager
{
[Token(Token = "0x6002C74")]
[Address(RVA = "0x603D40", Offset = "0x602B40", VA = "0x180603D40")]
get;
[Token(Token = "0x6002C75")]
[Address(RVA = "0x603D50", Offset = "0x602B50", VA = "0x180603D50")]
private set;
}
// Token: 0x06002C76 RID: 11382 RVA: 0x00060390 File Offset: 0x0005E590
[Token(Token = "0x6002C76")]
[Address(RVA = "0x603CA0", Offset = "0x602AA0", VA = "0x180603CA0")]
public VirtualAxis(string name)
{
this.<name>k__BackingField = name;
this.matchWithInputManager = true;
}
// Token: 0x06002C77 RID: 11383 RVA: 0x000603B4 File Offset: 0x0005E5B4
[Token(Token = "0x6002C77")]
[Address(RVA = "0x603CE0", Offset = "0x602AE0", VA = "0x180603CE0")]
public VirtualAxis(string name, bool matchToInputSettings)
{
this.<name>k__BackingField = name;
this.matchWithInputManager = matchToInputSettings;
}
// Token: 0x06002C78 RID: 11384 RVA: 0x000603D8 File Offset: 0x0005E5D8
[Token(Token = "0x6002C78")]
[Address(RVA = "0x603C30", Offset = "0x602A30", VA = "0x180603C30")]
public void Remove()
{
CrossPlatformInputManager.UnRegisterVirtualAxis(this.<name>k__BackingField);
}
// Token: 0x06002C79 RID: 11385 RVA: 0x000603F0 File Offset: 0x0005E5F0
[Token(Token = "0x6002C79")]
[Address(RVA = "0x603C90", Offset = "0x602A90", VA = "0x180603C90")]
public void Update(float value)
{
this.m_Value = value;
}
// Token: 0x17000317 RID: 791
// (get) Token: 0x06002C7A RID: 11386 RVA: 0x00060404 File Offset: 0x0005E604
[Token(Token = "0x17000317")]
public float GetValue
{
[Token(Token = "0x6002C7A")]
[Address(RVA = "0x603D30", Offset = "0x602B30", VA = "0x180603D30")]
get
{
return this.m_Value;
}
}
// Token: 0x17000318 RID: 792
// (get) Token: 0x06002C7B RID: 11387 RVA: 0x00060418 File Offset: 0x0005E618
[Token(Token = "0x17000318")]
public float GetValueRaw
{
[Token(Token = "0x6002C7B")]
[Address(RVA = "0x603D30", Offset = "0x602B30", VA = "0x180603D30")]
get
{
return this.m_Value;
}
}
// Token: 0x040034C1 RID: 13505
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40034C1")]
private float m_Value;
}
// Token: 0x020004F7 RID: 1271
[Token(Token = "0x20004F7")]
public class VirtualButton
{
// Token: 0x17000319 RID: 793
// (get) Token: 0x06002C7C RID: 11388 RVA: 0x0006042C File Offset: 0x0005E62C
// (set) Token: 0x06002C7D RID: 11389 RVA: 0x00060440 File Offset: 0x0005E640
[Token(Token = "0x17000319")]
public string name
{
[Token(Token = "0x6002C7C")]
[Address(RVA = "0x2B4010", Offset = "0x2B2E10", VA = "0x1802B4010")]
[CompilerGenerated]
get
{
return this.<name>k__BackingField;
}
[Token(Token = "0x6002C7D")]
[Address(RVA = "0x385090", Offset = "0x383E90", VA = "0x180385090")]
[CompilerGenerated]
private set
{
/*
An exception occurred when decompiling this method (06002C7D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.CrossPlatformInputManager/VirtualButton::set_name(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stfld:string(VirtualButton::<name>k__BackingField, ldloc:VirtualButton(this), ldloc:string(value)); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
}
}
// Token: 0x1700031A RID: 794
// (get) Token: 0x06002C7E RID: 11390 RVA: 0x00060454 File Offset: 0x0005E654
// (set) Token: 0x06002C7F RID: 11391 RVA: 0x00060468 File Offset: 0x0005E668
[Token(Token = "0x1700031A")]
public bool matchWithInputManager
{
[Token(Token = "0x6002C7E")]
[Address(RVA = "0x3FBFE0", Offset = "0x3FADE0", VA = "0x1803FBFE0")]
get;
[Token(Token = "0x6002C7F")]
[Address(RVA = "0x3FC010", Offset = "0x3FAE10", VA = "0x1803FC010")]
private set;
}
// Token: 0x06002C80 RID: 11392 RVA: 0x0006047C File Offset: 0x0005E67C
[Token(Token = "0x6002C80")]
[Address(RVA = "0x603E10", Offset = "0x602C10", VA = "0x180603E10")]
public VirtualButton(string name)
{
this.<name>k__BackingField = name;
this.matchWithInputManager = true;
}
// Token: 0x06002C81 RID: 11393 RVA: 0x000604C0 File Offset: 0x0005E6C0
[Token(Token = "0x6002C81")]
[Address(RVA = "0x603E60", Offset = "0x602C60", VA = "0x180603E60")]
public VirtualButton(string name, bool matchToInputSettings)
{
this.<name>k__BackingField = name;
this.matchWithInputManager = matchToInputSettings;
}
// Token: 0x06002C82 RID: 11394 RVA: 0x00060504 File Offset: 0x0005E704
[Token(Token = "0x6002C82")]
[Address(RVA = "0x603D60", Offset = "0x602B60", VA = "0x180603D60")]
public void Pressed()
{
if (!this.m_Pressed)
{
this.m_Pressed = true;
int frameCount = Time.frameCount;
this.m_LastPressedFrame = frameCount;
}
}
// Token: 0x06002C83 RID: 11395 RVA: 0x00060530 File Offset: 0x0005E730
[Token(Token = "0x6002C83")]
[Address(RVA = "0x603D90", Offset = "0x602B90", VA = "0x180603D90")]
public void Released()
{
this.m_Pressed = false;
int frameCount = Time.frameCount;
this.m_ReleasedFrame = frameCount;
}
// Token: 0x06002C84 RID: 11396 RVA: 0x00060554 File Offset: 0x0005E754
[Token(Token = "0x6002C84")]
[Address(RVA = "0x603DB0", Offset = "0x602BB0", VA = "0x180603DB0")]
public void Remove()
{
CrossPlatformInputManager.UnRegisterVirtualButton(this.<name>k__BackingField);
}
// Token: 0x1700031B RID: 795
// (get) Token: 0x06002C85 RID: 11397 RVA: 0x0006056C File Offset: 0x0005E76C
[Token(Token = "0x1700031B")]
public bool GetButton
{
[Token(Token = "0x6002C85")]
[Address(RVA = "0x3FC660", Offset = "0x3FB460", VA = "0x1803FC660")]
get
{
return this.m_Pressed;
}
}
// Token: 0x1700031C RID: 796
// (get) Token: 0x06002C86 RID: 11398 RVA: 0x00060580 File Offset: 0x0005E780
[Token(Token = "0x1700031C")]
public bool GetButtonDown
{
[Token(Token = "0x6002C86")]
[Address(RVA = "0x603EC0", Offset = "0x602CC0", VA = "0x180603EC0")]
get
{
int num = this.m_LastPressedFrame;
int frameCount = Time.frameCount;
num -= frameCount;
return num == -1;
}
}
// Token: 0x1700031D RID: 797
// (get) Token: 0x06002C87 RID: 11399 RVA: 0x000605A4 File Offset: 0x0005E7A4
[Token(Token = "0x1700031D")]
public bool GetButtonUp
{
[Token(Token = "0x6002C87")]
[Address(RVA = "0x603EE0", Offset = "0x602CE0", VA = "0x180603EE0")]
get
{
int releasedFrame = this.m_ReleasedFrame;
int frameCount = Time.frameCount;
return releasedFrame == frameCount;
}
}
// Token: 0x040034C5 RID: 13509
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40034C5")]
private int m_LastPressedFrame = (int)((ulong)4294967291L);
// Token: 0x040034C6 RID: 13510
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40034C6")]
private int m_ReleasedFrame = (int)((ulong)4294967291L);
// Token: 0x040034C7 RID: 13511
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x40034C7")]
private bool m_Pressed;
}
}
}

View File

@@ -0,0 +1,39 @@
using System;
using Cpp2IlInjected;
using UnityEngine;
namespace Obi.CrossPlatformInput
{
// Token: 0x020004F8 RID: 1272
[Token(Token = "0x20004F8")]
public class InputAxisScrollbar : MonoBehaviour
{
// Token: 0x06002C88 RID: 11400 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C88")]
[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
private void Update()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C89 RID: 11401 RVA: 0x000605C4 File Offset: 0x0005E7C4
[Token(Token = "0x6002C89")]
[Address(RVA = "0x10D3150", Offset = "0x10D1F50", VA = "0x1810D3150")]
public void HandleInput(float value)
{
CrossPlatformInputManager.SetAxis(this.axis, value);
}
// Token: 0x06002C8A RID: 11402 RVA: 0x000605E0 File Offset: 0x0005E7E0
[Token(Token = "0x6002C8A")]
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
public InputAxisScrollbar()
{
}
// Token: 0x040034C8 RID: 13512
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40034C8")]
public string axis;
}
}

View File

@@ -0,0 +1,195 @@
using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.EventSystems;
namespace Obi.CrossPlatformInput
{
// Token: 0x020004F9 RID: 1273
[Token(Token = "0x20004F9")]
public class Joystick : MonoBehaviour, IPointerDownHandler, IEventSystemHandler, IPointerUpHandler, IDragHandler
{
// Token: 0x06002C8B RID: 11403 RVA: 0x000605F4 File Offset: 0x0005E7F4
[Token(Token = "0x6002C8B")]
[Address(RVA = "0x10E2210", Offset = "0x10E1010", VA = "0x1810E2210")]
private void OnEnable()
{
bool flag;
do
{
Joystick.AxisOption axisOption = this.axesToUse;
if (axisOption == Joystick.AxisOption.Both)
{
this.m_UseX = true;
}
flag = axisOption == Joystick.AxisOption.OnlyHorizontal;
this.m_UseX = flag;
bool flag2 = axisOption == Joystick.AxisOption.OnlyVertical;
this.m_UseY = flag2;
}
while (!flag);
CrossPlatformInputManager.VirtualAxis virtualAxis = new CrossPlatformInputManager.VirtualAxis(this.horizontalAxisName);
this.m_HorizontalVirtualAxis = virtualAxis;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_HorizontalVirtualAxis);
if (this.m_UseY)
{
CrossPlatformInputManager.VirtualAxis virtualAxis2 = new CrossPlatformInputManager.VirtualAxis(this.verticalAxisName);
this.m_VerticalVirtualAxis = virtualAxis2;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_VerticalVirtualAxis);
}
}
// Token: 0x06002C8C RID: 11404 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C8C")]
[Address(RVA = "0x10E2600", Offset = "0x10E1400", VA = "0x1810E2600")]
private void Start()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C8D RID: 11405 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C8D")]
[Address(RVA = "0x10E2640", Offset = "0x10E1440", VA = "0x1810E2640")]
private void UpdateVirtualAxes(Vector3 value)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C8E RID: 11406 RVA: 0x00060678 File Offset: 0x0005E878
[Token(Token = "0x6002C8E")]
[Address(RVA = "0x10E2210", Offset = "0x10E1010", VA = "0x1810E2210")]
private void CreateVirtualAxes()
{
bool flag;
do
{
Joystick.AxisOption axisOption = this.axesToUse;
if (axisOption == Joystick.AxisOption.Both)
{
this.m_UseX = true;
}
flag = axisOption == Joystick.AxisOption.OnlyHorizontal;
this.m_UseX = flag;
bool flag2 = axisOption == Joystick.AxisOption.OnlyVertical;
this.m_UseY = flag2;
}
while (!flag);
CrossPlatformInputManager.VirtualAxis virtualAxis = new CrossPlatformInputManager.VirtualAxis(this.horizontalAxisName);
this.m_HorizontalVirtualAxis = virtualAxis;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_HorizontalVirtualAxis);
if (this.m_UseY)
{
CrossPlatformInputManager.VirtualAxis virtualAxis2 = new CrossPlatformInputManager.VirtualAxis(this.verticalAxisName);
this.m_VerticalVirtualAxis = virtualAxis2;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_VerticalVirtualAxis);
}
}
// Token: 0x06002C8F RID: 11407 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C8F")]
[Address(RVA = "0x10E23A0", Offset = "0x10E11A0", VA = "0x1810E23A0", Slot = "6")]
public void OnDrag(PointerEventData data)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C90 RID: 11408 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C90")]
[Address(RVA = "0x10E2550", Offset = "0x10E1350", VA = "0x1810E2550", Slot = "5")]
public void OnPointerUp(PointerEventData data)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C91 RID: 11409 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C91")]
[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "4")]
public void OnPointerDown(PointerEventData data)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C92 RID: 11410 RVA: 0x000606FC File Offset: 0x0005E8FC
[Token(Token = "0x6002C92")]
[Address(RVA = "0x10E2350", Offset = "0x10E1150", VA = "0x1810E2350")]
private void OnDisable()
{
if (this.m_UseX)
{
this.m_HorizontalVirtualAxis.Remove();
}
if (this.m_UseY)
{
this.m_VerticalVirtualAxis.Remove();
return;
}
}
// Token: 0x06002C93 RID: 11411 RVA: 0x00060738 File Offset: 0x0005E938
[Token(Token = "0x6002C93")]
[Address(RVA = "0x10E26C0", Offset = "0x10E14C0", VA = "0x1810E26C0")]
public Joystick()
{
}
// Token: 0x040034C9 RID: 13513
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40034C9")]
public int MovementRange = (int)((ulong)100L);
// Token: 0x040034CA RID: 13514
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40034CA")]
public Joystick.AxisOption axesToUse;
// Token: 0x040034CB RID: 13515
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40034CB")]
public string horizontalAxisName = "Horizontal";
// Token: 0x040034CC RID: 13516
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40034CC")]
public string verticalAxisName = "Vertical";
// Token: 0x040034CD RID: 13517
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40034CD")]
private Vector3 m_StartPos;
// Token: 0x040034CE RID: 13518
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x40034CE")]
private bool m_UseX;
// Token: 0x040034CF RID: 13519
[FieldOffset(Offset = "0x3D")]
[Token(Token = "0x40034CF")]
private bool m_UseY;
// Token: 0x040034D0 RID: 13520
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40034D0")]
private CrossPlatformInputManager.VirtualAxis m_HorizontalVirtualAxis;
// Token: 0x040034D1 RID: 13521
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40034D1")]
private CrossPlatformInputManager.VirtualAxis m_VerticalVirtualAxis;
// Token: 0x020004FA RID: 1274
[Token(Token = "0x20004FA")]
public enum AxisOption
{
// Token: 0x040034D3 RID: 13523
[Token(Token = "0x40034D3")]
Both,
// Token: 0x040034D4 RID: 13524
[Token(Token = "0x40034D4")]
OnlyHorizontal,
// Token: 0x040034D5 RID: 13525
[Token(Token = "0x40034D5")]
OnlyVertical
}
}
}

View File

@@ -0,0 +1,62 @@
using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.EventSystems;
namespace Obi.CrossPlatformInput
{
// Token: 0x020004FB RID: 1275
[Token(Token = "0x20004FB")]
[ExecuteInEditMode]
public class MobileControlRig : MonoBehaviour
{
// Token: 0x06002C94 RID: 11412 RVA: 0x0006076C File Offset: 0x0005E96C
[Token(Token = "0x6002C94")]
[Address(RVA = "0xBC4790", Offset = "0xBC3590", VA = "0x180BC4790")]
private void OnEnable()
{
int num = 0;
this.EnableControlRig(num != 0);
}
// Token: 0x06002C95 RID: 11413 RVA: 0x00060784 File Offset: 0x0005E984
[Token(Token = "0x6002C95")]
[Address(RVA = "0xBC4980", Offset = "0xBC3780", VA = "0x180BC4980")]
private void Start()
{
EventSystem eventSystem = UnityEngine.Object.FindObjectOfType<EventSystem>();
int num = 0;
if (eventSystem == num)
{
GameObject gameObject = new GameObject("EventSystem");
EventSystem eventSystem2 = gameObject.AddComponent<EventSystem>();
StandaloneInputModule standaloneInputModule = gameObject.AddComponent<StandaloneInputModule>();
return;
}
}
// Token: 0x06002C96 RID: 11414 RVA: 0x000607C4 File Offset: 0x0005E9C4
[Token(Token = "0x6002C96")]
[Address(RVA = "0xBC4790", Offset = "0xBC3590", VA = "0x180BC4790")]
private void CheckEnableControlRig()
{
int num = 0;
this.EnableControlRig(num != 0);
}
// Token: 0x06002C97 RID: 11415 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C97")]
[Address(RVA = "0xBC47A0", Offset = "0xBC35A0", VA = "0x180BC47A0")]
private void EnableControlRig(bool enabled)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C98 RID: 11416 RVA: 0x000607DC File Offset: 0x0005E9DC
[Token(Token = "0x6002C98")]
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
public MobileControlRig()
{
}
}
}

View File

@@ -0,0 +1,133 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using UnityEngine;
namespace Obi.CrossPlatformInput.PlatformSpecific
{
// Token: 0x02000504 RID: 1284
[Token(Token = "0x2000504")]
public class MobileInput : VirtualInput
{
// Token: 0x06002CBF RID: 11455 RVA: 0x00060CC4 File Offset: 0x0005EEC4
[Token(Token = "0x6002CBF")]
[Address(RVA = "0xBC4B10", Offset = "0xBC3910", VA = "0x180BC4B10")]
private void AddButton(string name)
{
CrossPlatformInputManager.RegisterVirtualButton(new CrossPlatformInputManager.VirtualButton(name));
}
// Token: 0x06002CC0 RID: 11456 RVA: 0x00060CDC File Offset: 0x0005EEDC
[Token(Token = "0x6002CC0")]
[Address(RVA = "0xBC4A80", Offset = "0xBC3880", VA = "0x180BC4A80")]
private void AddAxes(string name)
{
CrossPlatformInputManager.RegisterVirtualAxis(new CrossPlatformInputManager.VirtualAxis(name));
}
// Token: 0x06002CC1 RID: 11457 RVA: 0x00060CF4 File Offset: 0x0005EEF4
[Token(Token = "0x6002CC1")]
[Address(RVA = "0xBC4BA0", Offset = "0xBC39A0", VA = "0x180BC4BA0", Slot = "4")]
public override float GetAxis(string name, bool raw)
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
throw new NullReferenceException();
}
// Token: 0x06002CC2 RID: 11458 RVA: 0x00060D30 File Offset: 0x0005EF30
[Token(Token = "0x6002CC2")]
[Address(RVA = "0xBC50B0", Offset = "0xBC3EB0", VA = "0x180BC50B0", Slot = "8")]
public override void SetButtonDown(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
throw new NullReferenceException();
}
// Token: 0x06002CC3 RID: 11459 RVA: 0x00060D6C File Offset: 0x0005EF6C
[Token(Token = "0x6002CC3")]
[Address(RVA = "0xBC5150", Offset = "0xBC3F50", VA = "0x180BC5150", Slot = "9")]
public override void SetButtonUp(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
throw new NullReferenceException();
}
// Token: 0x06002CC4 RID: 11460 RVA: 0x00060DA8 File Offset: 0x0005EFA8
[Token(Token = "0x6002CC4")]
[Address(RVA = "0xBC4EC0", Offset = "0xBC3CC0", VA = "0x180BC4EC0", Slot = "10")]
public override void SetAxisPositive(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
throw new NullReferenceException();
}
// Token: 0x06002CC5 RID: 11461 RVA: 0x00060DEC File Offset: 0x0005EFEC
[Token(Token = "0x6002CC5")]
[Address(RVA = "0xBC4E20", Offset = "0xBC3C20", VA = "0x180BC4E20", Slot = "11")]
public override void SetAxisNegative(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
throw new NullReferenceException();
}
// Token: 0x06002CC6 RID: 11462 RVA: 0x00060E30 File Offset: 0x0005F030
[Token(Token = "0x6002CC6")]
[Address(RVA = "0xBC4F60", Offset = "0xBC3D60", VA = "0x180BC4F60", Slot = "12")]
public override void SetAxisZero(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
throw new NullReferenceException();
}
// Token: 0x06002CC7 RID: 11463 RVA: 0x00060E74 File Offset: 0x0005F074
[Token(Token = "0x6002CC7")]
[Address(RVA = "0xBC5000", Offset = "0xBC3E00", VA = "0x180BC5000", Slot = "13")]
public override void SetAxis(string name, float value)
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
throw new NullReferenceException();
}
// Token: 0x06002CC8 RID: 11464 RVA: 0x00060EB4 File Offset: 0x0005F0B4
[Token(Token = "0x6002CC8")]
[Address(RVA = "0xBC4C40", Offset = "0xBC3A40", VA = "0x180BC4C40", Slot = "6")]
public override bool GetButtonDown(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
throw new NullReferenceException();
}
// Token: 0x06002CC9 RID: 11465 RVA: 0x00060EF0 File Offset: 0x0005F0F0
[Token(Token = "0x6002CC9")]
[Address(RVA = "0xBC4CE0", Offset = "0xBC3AE0", VA = "0x180BC4CE0", Slot = "7")]
public override bool GetButtonUp(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
throw new NullReferenceException();
}
// Token: 0x06002CCA RID: 11466 RVA: 0x00060F2C File Offset: 0x0005F12C
[Token(Token = "0x6002CCA")]
[Address(RVA = "0xBC4D80", Offset = "0xBC3B80", VA = "0x180BC4D80", Slot = "5")]
public override bool GetButton(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
throw new NullReferenceException();
}
// Token: 0x06002CCB RID: 11467 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002CCB")]
[Address(RVA = "0x42E030", Offset = "0x42CE30", VA = "0x18042E030", Slot = "14")]
public override Vector3 MousePosition()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002CCC RID: 11468 RVA: 0x00060F68 File Offset: 0x0005F168
[Token(Token = "0x6002CCC")]
[Address(RVA = "0xAB4F10", Offset = "0xAB3D10", VA = "0x180AB4F10")]
public MobileInput()
{
}
}
}

View File

@@ -0,0 +1,193 @@
using System;
using Cpp2IlInjected;
using UnityEngine;
namespace Obi.CrossPlatformInput.PlatformSpecific
{
// Token: 0x02000505 RID: 1285
[Token(Token = "0x2000505")]
public class StandaloneInput : VirtualInput
{
// Token: 0x06002CCD RID: 11469 RVA: 0x00060F7C File Offset: 0x0005F17C
[Token(Token = "0x6002CCD")]
[Address(RVA = "0xAB4CC0", Offset = "0xAB3AC0", VA = "0x180AB4CC0", Slot = "4")]
public override float GetAxis(string name, bool raw)
{
while (raw)
{
}
return Input.GetAxis(name);
}
// Token: 0x06002CCE RID: 11470 RVA: 0x00060F94 File Offset: 0x0005F194
[Token(Token = "0x6002CCE")]
[Address(RVA = "0xAB4CF0", Offset = "0xAB3AF0", VA = "0x180AB4CF0", Slot = "5")]
public override bool GetButton(string name)
{
return Input.GetButton(name);
}
// Token: 0x06002CCF RID: 11471 RVA: 0x00060FA8 File Offset: 0x0005F1A8
[Token(Token = "0x6002CCF")]
[Address(RVA = "0x94B740", Offset = "0x94A540", VA = "0x18094B740", Slot = "6")]
public override bool GetButtonDown(string name)
{
return Input.GetButtonDown(name);
}
// Token: 0x06002CD0 RID: 11472 RVA: 0x00060FBC File Offset: 0x0005F1BC
[Token(Token = "0x6002CD0")]
[Address(RVA = "0xAB4CE0", Offset = "0xAB3AE0", VA = "0x180AB4CE0", Slot = "7")]
public override bool GetButtonUp(string name)
{
return Input.GetButtonUp(name);
}
// Token: 0x06002CD1 RID: 11473 RVA: 0x00060FD0 File Offset: 0x0005F1D0
[Token(Token = "0x6002CD1")]
[Address(RVA = "0xAB4E70", Offset = "0xAB3C70", VA = "0x180AB4E70", Slot = "8")]
public override void SetButtonDown(string name)
{
/*
An exception occurred when decompiling this method (06002CD1)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.PlatformSpecific.StandaloneInput::SetButtonDown(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stloc:Exception(var_0_0A, newobj:Exception(Exception::.ctor, ldstr:string(" This is not possible to be called for standalone input. Please check your platform and code where this is called"))); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
}
// Token: 0x06002CD2 RID: 11474 RVA: 0x00060FE8 File Offset: 0x0005F1E8
[Token(Token = "0x6002CD2")]
[Address(RVA = "0xAB4EC0", Offset = "0xAB3CC0", VA = "0x180AB4EC0", Slot = "9")]
public override void SetButtonUp(string name)
{
/*
An exception occurred when decompiling this method (06002CD2)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.PlatformSpecific.StandaloneInput::SetButtonUp(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stloc:Exception(var_0_0A, newobj:Exception(Exception::.ctor, ldstr:string(" This is not possible to be called for standalone input. Please check your platform and code where this is called"))); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
}
// Token: 0x06002CD3 RID: 11475 RVA: 0x00061000 File Offset: 0x0005F200
[Token(Token = "0x6002CD3")]
[Address(RVA = "0xAB4D80", Offset = "0xAB3B80", VA = "0x180AB4D80", Slot = "10")]
public override void SetAxisPositive(string name)
{
/*
An exception occurred when decompiling this method (06002CD3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.PlatformSpecific.StandaloneInput::SetAxisPositive(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stloc:Exception(var_0_0A, newobj:Exception(Exception::.ctor, ldstr:string(" This is not possible to be called for standalone input. Please check your platform and code where this is called"))); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
}
// Token: 0x06002CD4 RID: 11476 RVA: 0x00061018 File Offset: 0x0005F218
[Token(Token = "0x6002CD4")]
[Address(RVA = "0xAB4D30", Offset = "0xAB3B30", VA = "0x180AB4D30", Slot = "11")]
public override void SetAxisNegative(string name)
{
/*
An exception occurred when decompiling this method (06002CD4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.PlatformSpecific.StandaloneInput::SetAxisNegative(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stloc:Exception(var_0_0A, newobj:Exception(Exception::.ctor, ldstr:string(" This is not possible to be called for standalone input. Please check your platform and code where this is called"))); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
}
// Token: 0x06002CD5 RID: 11477 RVA: 0x00061030 File Offset: 0x0005F230
[Token(Token = "0x6002CD5")]
[Address(RVA = "0xAB4DD0", Offset = "0xAB3BD0", VA = "0x180AB4DD0", Slot = "12")]
public override void SetAxisZero(string name)
{
/*
An exception occurred when decompiling this method (06002CD5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.PlatformSpecific.StandaloneInput::SetAxisZero(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stloc:Exception(var_0_0A, newobj:Exception(Exception::.ctor, ldstr:string(" This is not possible to be called for standalone input. Please check your platform and code where this is called"))); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
}
// Token: 0x06002CD6 RID: 11478 RVA: 0x00061048 File Offset: 0x0005F248
[Token(Token = "0x6002CD6")]
[Address(RVA = "0xAB4E20", Offset = "0xAB3C20", VA = "0x180AB4E20", Slot = "13")]
public override void SetAxis(string name, float value)
{
/*
An exception occurred when decompiling this method (06002CD6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Obi.CrossPlatformInput.PlatformSpecific.StandaloneInput::SetAxis(System.String,System.Single)
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stloc:Exception(var_0_0A, newobj:Exception(Exception::.ctor, ldstr:string(" This is not possible to be called for standalone input. Please check your platform and code where this is called"))); };
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
}
// Token: 0x06002CD7 RID: 11479 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002CD7")]
[Address(RVA = "0xAB4D00", Offset = "0xAB3B00", VA = "0x180AB4D00", Slot = "14")]
public override Vector3 MousePosition()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002CD8 RID: 11480 RVA: 0x00061060 File Offset: 0x0005F260
[Token(Token = "0x6002CD8")]
[Address(RVA = "0xAB4F10", Offset = "0xAB3D10", VA = "0x180AB4F10")]
public StandaloneInput()
{
}
}
}

View File

@@ -0,0 +1,126 @@
using System;
using Cpp2IlInjected;
using UnityEngine;
namespace Obi.CrossPlatformInput
{
// Token: 0x020004FC RID: 1276
[Token(Token = "0x20004FC")]
public class TiltInput : MonoBehaviour
{
// Token: 0x06002C99 RID: 11417 RVA: 0x000607F0 File Offset: 0x0005E9F0
[Token(Token = "0x6002C99")]
[Address(RVA = "0x1300970", Offset = "0x12FF770", VA = "0x181300970")]
private void OnEnable()
{
TiltInput.AxisMapping axisMapping = this.mapping;
if (axisMapping.type == TiltInput.AxisMapping.MappingType.NamedAxis)
{
CrossPlatformInputManager.VirtualAxis virtualAxis = new CrossPlatformInputManager.VirtualAxis(axisMapping.axisName);
this.m_SteerAxis = virtualAxis;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_SteerAxis);
}
}
// Token: 0x06002C9A RID: 11418 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C9A")]
[Address(RVA = "0x1300A30", Offset = "0x12FF830", VA = "0x181300A30")]
private void Update()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002C9B RID: 11419 RVA: 0x00060834 File Offset: 0x0005EA34
[Token(Token = "0x6002C9B")]
[Address(RVA = "0x1300950", Offset = "0x12FF750", VA = "0x181300950")]
private void OnDisable()
{
this.m_SteerAxis.Remove();
}
// Token: 0x06002C9C RID: 11420 RVA: 0x00060854 File Offset: 0x0005EA54
[Token(Token = "0x6002C9C")]
[Address(RVA = "0x1300C80", Offset = "0x12FFA80", VA = "0x181300C80")]
public TiltInput()
{
}
// Token: 0x040034D6 RID: 13526
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40034D6")]
public TiltInput.AxisMapping mapping;
// Token: 0x040034D7 RID: 13527
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40034D7")]
public TiltInput.AxisOptions tiltAroundAxis;
// Token: 0x040034D8 RID: 13528
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x40034D8")]
public float fullTiltAngle = 25f;
// Token: 0x040034D9 RID: 13529
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40034D9")]
public float centreAngleOffset;
// Token: 0x040034DA RID: 13530
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40034DA")]
private CrossPlatformInputManager.VirtualAxis m_SteerAxis;
// Token: 0x020004FD RID: 1277
[Token(Token = "0x20004FD")]
public enum AxisOptions
{
// Token: 0x040034DC RID: 13532
[Token(Token = "0x40034DC")]
ForwardAxis,
// Token: 0x040034DD RID: 13533
[Token(Token = "0x40034DD")]
SidewaysAxis
}
// Token: 0x020004FE RID: 1278
[Token(Token = "0x20004FE")]
[Serializable]
public class AxisMapping
{
// Token: 0x06002C9D RID: 11421 RVA: 0x00060874 File Offset: 0x0005EA74
[Token(Token = "0x6002C9D")]
[Address(RVA = "0x3D8B20", Offset = "0x3D7920", VA = "0x1803D8B20")]
public AxisMapping()
{
}
// Token: 0x040034DE RID: 13534
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40034DE")]
public TiltInput.AxisMapping.MappingType type;
// Token: 0x040034DF RID: 13535
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40034DF")]
public string axisName;
// Token: 0x020004FF RID: 1279
[Token(Token = "0x20004FF")]
public enum MappingType
{
// Token: 0x040034E1 RID: 13537
[Token(Token = "0x40034E1")]
NamedAxis,
// Token: 0x040034E2 RID: 13538
[Token(Token = "0x40034E2")]
MousePositionX,
// Token: 0x040034E3 RID: 13539
[Token(Token = "0x40034E3")]
MousePositionY,
// Token: 0x040034E4 RID: 13540
[Token(Token = "0x40034E4")]
MousePositionZ
}
}
}
}

View File

@@ -0,0 +1,263 @@
using System;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace Obi.CrossPlatformInput
{
// Token: 0x02000500 RID: 1280
[Token(Token = "0x2000500")]
[RequireComponent(typeof(Image))]
public class TouchPad : MonoBehaviour, IPointerDownHandler, IEventSystemHandler, IPointerUpHandler
{
// Token: 0x06002C9E RID: 11422 RVA: 0x00060888 File Offset: 0x0005EA88
[Token(Token = "0x6002C9E")]
[Address(RVA = "0x1302B40", Offset = "0x1301940", VA = "0x181302B40")]
private void OnEnable()
{
bool flag;
do
{
TouchPad.AxisOption axisOption = this.axesToUse;
if (axisOption == TouchPad.AxisOption.Both)
{
this.m_UseX = true;
}
flag = axisOption == TouchPad.AxisOption.OnlyHorizontal;
this.m_UseX = flag;
bool flag2 = axisOption == TouchPad.AxisOption.OnlyVertical;
this.m_UseY = flag2;
}
while (!flag);
CrossPlatformInputManager.VirtualAxis virtualAxis = new CrossPlatformInputManager.VirtualAxis(this.horizontalAxisName);
this.m_HorizontalVirtualAxis = virtualAxis;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_HorizontalVirtualAxis);
if (this.m_UseY)
{
CrossPlatformInputManager.VirtualAxis virtualAxis2 = new CrossPlatformInputManager.VirtualAxis(this.verticalAxisName);
this.m_VerticalVirtualAxis = virtualAxis2;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_VerticalVirtualAxis);
}
}
// Token: 0x06002C9F RID: 11423 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002C9F")]
[Address(RVA = "0x1302E60", Offset = "0x1301C60", VA = "0x181302E60")]
private void Start()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002CA0 RID: 11424 RVA: 0x0006090C File Offset: 0x0005EB0C
[Token(Token = "0x6002CA0")]
[Address(RVA = "0x1302B40", Offset = "0x1301940", VA = "0x181302B40")]
private void CreateVirtualAxes()
{
bool flag;
do
{
TouchPad.AxisOption axisOption = this.axesToUse;
if (axisOption == TouchPad.AxisOption.Both)
{
this.m_UseX = true;
}
flag = axisOption == TouchPad.AxisOption.OnlyHorizontal;
this.m_UseX = flag;
bool flag2 = axisOption == TouchPad.AxisOption.OnlyVertical;
this.m_UseY = flag2;
}
while (!flag);
CrossPlatformInputManager.VirtualAxis virtualAxis = new CrossPlatformInputManager.VirtualAxis(this.horizontalAxisName);
this.m_HorizontalVirtualAxis = virtualAxis;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_HorizontalVirtualAxis);
if (this.m_UseY)
{
CrossPlatformInputManager.VirtualAxis virtualAxis2 = new CrossPlatformInputManager.VirtualAxis(this.verticalAxisName);
this.m_VerticalVirtualAxis = virtualAxis2;
CrossPlatformInputManager.RegisterVirtualAxis(this.m_VerticalVirtualAxis);
}
}
// Token: 0x06002CA1 RID: 11425 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002CA1")]
[Address(RVA = "0x1302F00", Offset = "0x1301D00", VA = "0x181302F00")]
private void UpdateVirtualAxes(Vector3 value)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002CA2 RID: 11426 RVA: 0x00060990 File Offset: 0x0005EB90
[Token(Token = "0x6002CA2")]
[Address(RVA = "0x1302D70", Offset = "0x1301B70", VA = "0x181302D70", Slot = "4")]
public void OnPointerDown(PointerEventData data)
{
this.m_Dragging = true;
int <pointerId>k__BackingField = data.<pointerId>k__BackingField;
this.m_Id = <pointerId>k__BackingField;
if (this.controlStyle != TouchPad.ControlStyle.Absolute)
{
int num = 0;
this.m_Center.z = (float)num;
}
}
// Token: 0x06002CA3 RID: 11427 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002CA3")]
[Address(RVA = "0x1302F80", Offset = "0x1301D80", VA = "0x181302F80")]
private void Update()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002CA4 RID: 11428 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002CA4")]
[Address(RVA = "0x1302DD0", Offset = "0x1301BD0", VA = "0x181302DD0", Slot = "5")]
public void OnPointerUp(PointerEventData data)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002CA5 RID: 11429 RVA: 0x000609D0 File Offset: 0x0005EBD0
[Token(Token = "0x6002CA5")]
[Address(RVA = "0x1302C80", Offset = "0x1301A80", VA = "0x181302C80")]
private void OnDisable()
{
if (CrossPlatformInputManager.AxisExists(this.horizontalAxisName))
{
CrossPlatformInputManager.UnRegisterVirtualAxis(this.horizontalAxisName);
}
if (CrossPlatformInputManager.AxisExists(this.verticalAxisName))
{
CrossPlatformInputManager.UnRegisterVirtualAxis(this.verticalAxisName);
}
}
// Token: 0x06002CA6 RID: 11430 RVA: 0x00060A10 File Offset: 0x0005EC10
[Token(Token = "0x6002CA6")]
[Address(RVA = "0x13031A0", Offset = "0x1301FA0", VA = "0x1813031A0")]
public TouchPad()
{
}
// Token: 0x040034E5 RID: 13541
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40034E5")]
public TouchPad.AxisOption axesToUse;
// Token: 0x040034E6 RID: 13542
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40034E6")]
public TouchPad.ControlStyle controlStyle;
// Token: 0x040034E7 RID: 13543
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40034E7")]
public string horizontalAxisName = "Horizontal";
// Token: 0x040034E8 RID: 13544
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40034E8")]
public string verticalAxisName = "Vertical";
// Token: 0x040034E9 RID: 13545
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40034E9")]
public float Xsensitivity = 1f;
// Token: 0x040034EA RID: 13546
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x40034EA")]
public float Ysensitivity = 1f;
// Token: 0x040034EB RID: 13547
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40034EB")]
private Vector3 m_StartPos;
// Token: 0x040034EC RID: 13548
[FieldOffset(Offset = "0x44")]
[Token(Token = "0x40034EC")]
private Vector2 m_PreviousDelta;
// Token: 0x040034ED RID: 13549
[FieldOffset(Offset = "0x4C")]
[Token(Token = "0x40034ED")]
private Vector3 m_JoytickOutput;
// Token: 0x040034EE RID: 13550
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40034EE")]
private bool m_UseX;
// Token: 0x040034EF RID: 13551
[FieldOffset(Offset = "0x59")]
[Token(Token = "0x40034EF")]
private bool m_UseY;
// Token: 0x040034F0 RID: 13552
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40034F0")]
private CrossPlatformInputManager.VirtualAxis m_HorizontalVirtualAxis;
// Token: 0x040034F1 RID: 13553
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x40034F1")]
private CrossPlatformInputManager.VirtualAxis m_VerticalVirtualAxis;
// Token: 0x040034F2 RID: 13554
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x40034F2")]
private bool m_Dragging;
// Token: 0x040034F3 RID: 13555
[FieldOffset(Offset = "0x74")]
[Token(Token = "0x40034F3")]
private int m_Id = (int)((ulong)4294967295L);
// Token: 0x040034F4 RID: 13556
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x40034F4")]
private Vector2 m_PreviousTouchPos;
// Token: 0x040034F5 RID: 13557
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x40034F5")]
private Vector3 m_Center;
// Token: 0x040034F6 RID: 13558
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40034F6")]
private Image m_Image;
// Token: 0x02000501 RID: 1281
[Token(Token = "0x2000501")]
public enum AxisOption
{
// Token: 0x040034F8 RID: 13560
[Token(Token = "0x40034F8")]
Both,
// Token: 0x040034F9 RID: 13561
[Token(Token = "0x40034F9")]
OnlyHorizontal,
// Token: 0x040034FA RID: 13562
[Token(Token = "0x40034FA")]
OnlyVertical
}
// Token: 0x02000502 RID: 1282
[Token(Token = "0x2000502")]
public enum ControlStyle
{
// Token: 0x040034FC RID: 13564
[Token(Token = "0x40034FC")]
Absolute,
// Token: 0x040034FD RID: 13565
[Token(Token = "0x40034FD")]
Relative,
// Token: 0x040034FE RID: 13566
[Token(Token = "0x40034FE")]
Swipe
}
}
}

View File

@@ -0,0 +1,207 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
using UnityEngine;
namespace Obi.CrossPlatformInput
{
// Token: 0x02000503 RID: 1283
[Token(Token = "0x2000503")]
public abstract class VirtualInput
{
// Token: 0x1700031E RID: 798
// (get) Token: 0x06002CA7 RID: 11431 RVA: 0x000020D3 File Offset: 0x000002D3
// (set) Token: 0x06002CA8 RID: 11432 RVA: 0x00060A60 File Offset: 0x0005EC60
[Token(Token = "0x1700031E")]
public Vector3 virtualMousePosition
{
[Token(Token = "0x6002CA7")]
[Address(RVA = "0x42E030", Offset = "0x42CE30", VA = "0x18042E030")]
[CompilerGenerated]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
[Token(Token = "0x6002CA8")]
[Address(RVA = "0x5FD260", Offset = "0x5FC060", VA = "0x1805FD260")]
[CompilerGenerated]
private set
{
float z = value.z;
this.<virtualMousePosition>k__BackingField.z = z;
}
}
// Token: 0x06002CA9 RID: 11433 RVA: 0x00060A80 File Offset: 0x0005EC80
[Token(Token = "0x6002CA9")]
[Address(RVA = "0x937CD0", Offset = "0x936AD0", VA = "0x180937CD0")]
public bool AxisExists(string name)
{
return this.m_VirtualAxes.ContainsKey(name);
}
// Token: 0x06002CAA RID: 11434 RVA: 0x00060AA0 File Offset: 0x0005ECA0
[Token(Token = "0x6002CAA")]
[Address(RVA = "0x937D30", Offset = "0x936B30", VA = "0x180937D30")]
public bool ButtonExists(string name)
{
return this.m_VirtualButtons.ContainsKey(name);
}
// Token: 0x06002CAB RID: 11435 RVA: 0x00060AC0 File Offset: 0x0005ECC0
[Token(Token = "0x6002CAB")]
[Address(RVA = "0x937D90", Offset = "0x936B90", VA = "0x180937D90")]
public void RegisterVirtualAxis(CrossPlatformInputManager.VirtualAxis axis)
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
throw new NullReferenceException();
}
// Token: 0x06002CAC RID: 11436 RVA: 0x00060B34 File Offset: 0x0005ED34
[Token(Token = "0x6002CAC")]
[Address(RVA = "0x937ED0", Offset = "0x936CD0", VA = "0x180937ED0")]
public void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton button)
{
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
throw new NullReferenceException();
}
// Token: 0x06002CAD RID: 11437 RVA: 0x00060BA8 File Offset: 0x0005EDA8
[Token(Token = "0x6002CAD")]
[Address(RVA = "0x9380D0", Offset = "0x936ED0", VA = "0x1809380D0")]
public void UnRegisterVirtualAxis(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
throw new NullReferenceException();
}
// Token: 0x06002CAE RID: 11438 RVA: 0x00060BDC File Offset: 0x0005EDDC
[Token(Token = "0x6002CAE")]
[Address(RVA = "0x938150", Offset = "0x936F50", VA = "0x180938150")]
public void UnRegisterVirtualButton(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
throw new NullReferenceException();
}
// Token: 0x06002CAF RID: 11439 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002CAF")]
[Address(RVA = "0x9381D0", Offset = "0x936FD0", VA = "0x1809381D0")]
public CrossPlatformInputManager.VirtualAxis VirtualAxisReference(string name)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002CB0 RID: 11440 RVA: 0x00060C10 File Offset: 0x0005EE10
[Token(Token = "0x6002CB0")]
[Address(RVA = "0x938010", Offset = "0x936E10", VA = "0x180938010")]
public void SetVirtualMousePositionX(float f)
{
float z = this.<virtualMousePosition>k__BackingField.z;
this.<virtualMousePosition>k__BackingField.z = z;
}
// Token: 0x06002CB1 RID: 11441 RVA: 0x00060C38 File Offset: 0x0005EE38
[Token(Token = "0x6002CB1")]
[Address(RVA = "0x938050", Offset = "0x936E50", VA = "0x180938050")]
public void SetVirtualMousePositionY(float f)
{
float z = this.<virtualMousePosition>k__BackingField.z;
this.<virtualMousePosition>k__BackingField.z = z;
}
// Token: 0x06002CB2 RID: 11442 RVA: 0x00060C60 File Offset: 0x0005EE60
[Token(Token = "0x6002CB2")]
[Address(RVA = "0x938090", Offset = "0x936E90", VA = "0x180938090")]
public void SetVirtualMousePositionZ(float f)
{
float z = this.<virtualMousePosition>k__BackingField.z;
this.<virtualMousePosition>k__BackingField.z = f;
}
// Token: 0x06002CB3 RID: 11443
[Token(Token = "0x6002CB3")]
[Address(Slot = "4")]
public abstract float GetAxis(string name, bool raw);
// Token: 0x06002CB4 RID: 11444
[Token(Token = "0x6002CB4")]
[Address(Slot = "5")]
public abstract bool GetButton(string name);
// Token: 0x06002CB5 RID: 11445
[Token(Token = "0x6002CB5")]
[Address(Slot = "6")]
public abstract bool GetButtonDown(string name);
// Token: 0x06002CB6 RID: 11446
[Token(Token = "0x6002CB6")]
[Address(Slot = "7")]
public abstract bool GetButtonUp(string name);
// Token: 0x06002CB7 RID: 11447
[Token(Token = "0x6002CB7")]
[Address(Slot = "8")]
public abstract void SetButtonDown(string name);
// Token: 0x06002CB8 RID: 11448
[Token(Token = "0x6002CB8")]
[Address(Slot = "9")]
public abstract void SetButtonUp(string name);
// Token: 0x06002CB9 RID: 11449
[Token(Token = "0x6002CB9")]
[Address(Slot = "10")]
public abstract void SetAxisPositive(string name);
// Token: 0x06002CBA RID: 11450
[Token(Token = "0x6002CBA")]
[Address(Slot = "11")]
public abstract void SetAxisNegative(string name);
// Token: 0x06002CBB RID: 11451
[Token(Token = "0x6002CBB")]
[Address(Slot = "12")]
public abstract void SetAxisZero(string name);
// Token: 0x06002CBC RID: 11452
[Token(Token = "0x6002CBC")]
[Address(Slot = "13")]
public abstract void SetAxis(string name, float value);
// Token: 0x06002CBD RID: 11453
[Token(Token = "0x6002CBD")]
[Address(Slot = "14")]
public abstract Vector3 MousePosition();
// Token: 0x06002CBE RID: 11454 RVA: 0x00060C88 File Offset: 0x0005EE88
[Token(Token = "0x6002CBE")]
[Address(RVA = "0x938260", Offset = "0x937060", VA = "0x180938260")]
protected VirtualInput()
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> dictionary = new Dictionary();
this.m_VirtualAxes = dictionary;
Dictionary<string, CrossPlatformInputManager.VirtualButton> dictionary2 = new Dictionary();
this.m_VirtualButtons = dictionary2;
List<string> list = new List();
this.m_AlwaysUseVirtual = list;
base..ctor();
}
// Token: 0x04003500 RID: 13568
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4003500")]
protected Dictionary<string, CrossPlatformInputManager.VirtualAxis> m_VirtualAxes;
// Token: 0x04003501 RID: 13569
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4003501")]
protected Dictionary<string, CrossPlatformInputManager.VirtualButton> m_VirtualButtons;
// Token: 0x04003502 RID: 13570
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4003502")]
protected List<string> m_AlwaysUseVirtual;
}
}