134 lines
5.2 KiB
C#
134 lines
5.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace Obi.CrossPlatformInput.PlatformSpecific
|
|
{
|
|
// Token: 0x0200050D RID: 1293
|
|
[Token(Token = "0x200050D")]
|
|
public class MobileInput : VirtualInput
|
|
{
|
|
// Token: 0x06002CF1 RID: 11505 RVA: 0x00060FF0 File Offset: 0x0005F1F0
|
|
[Token(Token = "0x6002CF1")]
|
|
[Address(RVA = "0xCBD0F0", Offset = "0xCBB8F0", VA = "0x180CBD0F0")]
|
|
private void AddButton(string name)
|
|
{
|
|
CrossPlatformInputManager.RegisterVirtualButton(new CrossPlatformInputManager.VirtualButton(name));
|
|
}
|
|
|
|
// Token: 0x06002CF2 RID: 11506 RVA: 0x00061008 File Offset: 0x0005F208
|
|
[Token(Token = "0x6002CF2")]
|
|
[Address(RVA = "0xCBD060", Offset = "0xCBB860", VA = "0x180CBD060")]
|
|
private void AddAxes(string name)
|
|
{
|
|
CrossPlatformInputManager.RegisterVirtualAxis(new CrossPlatformInputManager.VirtualAxis(name));
|
|
}
|
|
|
|
// Token: 0x06002CF3 RID: 11507 RVA: 0x00061020 File Offset: 0x0005F220
|
|
[Token(Token = "0x6002CF3")]
|
|
[Address(RVA = "0xCBD180", Offset = "0xCBB980", VA = "0x180CBD180", Slot = "4")]
|
|
public override float GetAxis(string name, bool raw)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CF4 RID: 11508 RVA: 0x0006105C File Offset: 0x0005F25C
|
|
[Token(Token = "0x6002CF4")]
|
|
[Address(RVA = "0xCBD690", Offset = "0xCBBE90", VA = "0x180CBD690", Slot = "8")]
|
|
public override void SetButtonDown(string name)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CF5 RID: 11509 RVA: 0x00061098 File Offset: 0x0005F298
|
|
[Token(Token = "0x6002CF5")]
|
|
[Address(RVA = "0xCBD730", Offset = "0xCBBF30", VA = "0x180CBD730", Slot = "9")]
|
|
public override void SetButtonUp(string name)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CF6 RID: 11510 RVA: 0x000610D4 File Offset: 0x0005F2D4
|
|
[Token(Token = "0x6002CF6")]
|
|
[Address(RVA = "0xCBD4A0", Offset = "0xCBBCA0", VA = "0x180CBD4A0", Slot = "10")]
|
|
public override void SetAxisPositive(string name)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CF7 RID: 11511 RVA: 0x00061118 File Offset: 0x0005F318
|
|
[Token(Token = "0x6002CF7")]
|
|
[Address(RVA = "0xCBD400", Offset = "0xCBBC00", VA = "0x180CBD400", Slot = "11")]
|
|
public override void SetAxisNegative(string name)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CF8 RID: 11512 RVA: 0x0006115C File Offset: 0x0005F35C
|
|
[Token(Token = "0x6002CF8")]
|
|
[Address(RVA = "0xCBD540", Offset = "0xCBBD40", VA = "0x180CBD540", Slot = "12")]
|
|
public override void SetAxisZero(string name)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CF9 RID: 11513 RVA: 0x000611A0 File Offset: 0x0005F3A0
|
|
[Token(Token = "0x6002CF9")]
|
|
[Address(RVA = "0xCBD5E0", Offset = "0xCBBDE0", VA = "0x180CBD5E0", Slot = "13")]
|
|
public override void SetAxis(string name, float value)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CFA RID: 11514 RVA: 0x000611E0 File Offset: 0x0005F3E0
|
|
[Token(Token = "0x6002CFA")]
|
|
[Address(RVA = "0xCBD220", Offset = "0xCBBA20", VA = "0x180CBD220", Slot = "6")]
|
|
public override bool GetButtonDown(string name)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CFB RID: 11515 RVA: 0x0006121C File Offset: 0x0005F41C
|
|
[Token(Token = "0x6002CFB")]
|
|
[Address(RVA = "0xCBD2C0", Offset = "0xCBBAC0", VA = "0x180CBD2C0", Slot = "7")]
|
|
public override bool GetButtonUp(string name)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CFC RID: 11516 RVA: 0x00061258 File Offset: 0x0005F458
|
|
[Token(Token = "0x6002CFC")]
|
|
[Address(RVA = "0xCBD360", Offset = "0xCBBB60", VA = "0x180CBD360", Slot = "5")]
|
|
public override bool GetButton(string name)
|
|
{
|
|
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002CFD RID: 11517 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002CFD")]
|
|
[Address(RVA = "0x470CF0", Offset = "0x46F4F0", VA = "0x180470CF0", Slot = "14")]
|
|
public override Vector3 MousePosition()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002CFE RID: 11518 RVA: 0x00061294 File Offset: 0x0005F494
|
|
[Token(Token = "0x6002CFE")]
|
|
[Address(RVA = "0xB195B0", Offset = "0xB17DB0", VA = "0x180B195B0")]
|
|
public MobileInput()
|
|
{
|
|
}
|
|
}
|
|
}
|