Files
NobetaSource/Cpp2IL/Assembly-CSharp/Obi/CrossPlatformInput/VirtualInput.cs
2023-09-06 22:09:22 +02:00

202 lines
6.7 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
using UnityEngine;
namespace Obi.CrossPlatformInput
{
// Token: 0x0200050C RID: 1292
[Token(Token = "0x200050C")]
public abstract class VirtualInput
{
// Token: 0x17000318 RID: 792
// (get) Token: 0x06002CD9 RID: 11481 RVA: 0x000020D3 File Offset: 0x000002D3
// (set) Token: 0x06002CDA RID: 11482 RVA: 0x00060DC8 File Offset: 0x0005EFC8
[Token(Token = "0x17000318")]
public Vector3 virtualMousePosition
{
[Token(Token = "0x6002CD9")]
[Address(RVA = "0x470CF0", Offset = "0x46F4F0", VA = "0x180470CF0")]
[CompilerGenerated]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
[Token(Token = "0x6002CDA")]
[Address(RVA = "0x9462D0", Offset = "0x944AD0", VA = "0x1809462D0")]
[CompilerGenerated]
private set
{
float z = value.z;
this.<virtualMousePosition>k__BackingField.z = z;
}
}
// Token: 0x06002CDB RID: 11483 RVA: 0x00060DE8 File Offset: 0x0005EFE8
[Token(Token = "0x6002CDB")]
[Address(RVA = "0x945C40", Offset = "0x944440", VA = "0x180945C40")]
public bool AxisExists(string name)
{
return this.m_VirtualAxes.ContainsKey(name);
}
// Token: 0x06002CDC RID: 11484 RVA: 0x00060E08 File Offset: 0x0005F008
[Token(Token = "0x6002CDC")]
[Address(RVA = "0x945CA0", Offset = "0x9444A0", VA = "0x180945CA0")]
public bool ButtonExists(string name)
{
return this.m_VirtualButtons.ContainsKey(name);
}
// Token: 0x06002CDD RID: 11485 RVA: 0x00060E28 File Offset: 0x0005F028
[Token(Token = "0x6002CDD")]
[Address(RVA = "0x945D00", Offset = "0x944500", VA = "0x180945D00")]
public void RegisterVirtualAxis(CrossPlatformInputManager.VirtualAxis axis)
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
throw new NullReferenceException();
}
// Token: 0x06002CDE RID: 11486 RVA: 0x00060E9C File Offset: 0x0005F09C
[Token(Token = "0x6002CDE")]
[Address(RVA = "0x945E40", Offset = "0x944640", VA = "0x180945E40")]
public void RegisterVirtualButton(CrossPlatformInputManager.VirtualButton button)
{
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
throw new NullReferenceException();
}
// Token: 0x06002CDF RID: 11487 RVA: 0x00060F10 File Offset: 0x0005F110
[Token(Token = "0x6002CDF")]
[Address(RVA = "0x946040", Offset = "0x944840", VA = "0x180946040")]
public void UnRegisterVirtualAxis(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualAxis> virtualAxes = this.m_VirtualAxes;
throw new NullReferenceException();
}
// Token: 0x06002CE0 RID: 11488 RVA: 0x00060F44 File Offset: 0x0005F144
[Token(Token = "0x6002CE0")]
[Address(RVA = "0x9460C0", Offset = "0x9448C0", VA = "0x1809460C0")]
public void UnRegisterVirtualButton(string name)
{
Dictionary<string, CrossPlatformInputManager.VirtualButton> virtualButtons = this.m_VirtualButtons;
throw new NullReferenceException();
}
// Token: 0x06002CE1 RID: 11489 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002CE1")]
[Address(RVA = "0x946140", Offset = "0x944940", VA = "0x180946140")]
public CrossPlatformInputManager.VirtualAxis VirtualAxisReference(string name)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002CE2 RID: 11490 RVA: 0x00060F78 File Offset: 0x0005F178
[Token(Token = "0x6002CE2")]
[Address(RVA = "0x945F80", Offset = "0x944780", VA = "0x180945F80")]
public void SetVirtualMousePositionX(float f)
{
float z = this.<virtualMousePosition>k__BackingField.z;
this.<virtualMousePosition>k__BackingField.z = z;
}
// Token: 0x06002CE3 RID: 11491 RVA: 0x00060FA0 File Offset: 0x0005F1A0
[Token(Token = "0x6002CE3")]
[Address(RVA = "0x945FC0", Offset = "0x9447C0", VA = "0x180945FC0")]
public void SetVirtualMousePositionY(float f)
{
float z = this.<virtualMousePosition>k__BackingField.z;
this.<virtualMousePosition>k__BackingField.z = z;
}
// Token: 0x06002CE4 RID: 11492 RVA: 0x00060FC8 File Offset: 0x0005F1C8
[Token(Token = "0x6002CE4")]
[Address(RVA = "0x946000", Offset = "0x944800", VA = "0x180946000")]
public void SetVirtualMousePositionZ(float f)
{
float z = this.<virtualMousePosition>k__BackingField.z;
this.<virtualMousePosition>k__BackingField.z = f;
}
// Token: 0x06002CE5 RID: 11493
[Token(Token = "0x6002CE5")]
[Address(Slot = "4")]
public abstract float GetAxis(string name, bool raw);
// Token: 0x06002CE6 RID: 11494
[Token(Token = "0x6002CE6")]
[Address(Slot = "5")]
public abstract bool GetButton(string name);
// Token: 0x06002CE7 RID: 11495
[Token(Token = "0x6002CE7")]
[Address(Slot = "6")]
public abstract bool GetButtonDown(string name);
// Token: 0x06002CE8 RID: 11496
[Token(Token = "0x6002CE8")]
[Address(Slot = "7")]
public abstract bool GetButtonUp(string name);
// Token: 0x06002CE9 RID: 11497
[Token(Token = "0x6002CE9")]
[Address(Slot = "8")]
public abstract void SetButtonDown(string name);
// Token: 0x06002CEA RID: 11498
[Token(Token = "0x6002CEA")]
[Address(Slot = "9")]
public abstract void SetButtonUp(string name);
// Token: 0x06002CEB RID: 11499
[Token(Token = "0x6002CEB")]
[Address(Slot = "10")]
public abstract void SetAxisPositive(string name);
// Token: 0x06002CEC RID: 11500
[Token(Token = "0x6002CEC")]
[Address(Slot = "11")]
public abstract void SetAxisNegative(string name);
// Token: 0x06002CED RID: 11501
[Token(Token = "0x6002CED")]
[Address(Slot = "12")]
public abstract void SetAxisZero(string name);
// Token: 0x06002CEE RID: 11502
[Token(Token = "0x6002CEE")]
[Address(Slot = "13")]
public abstract void SetAxis(string name, float value);
// Token: 0x06002CEF RID: 11503
[Token(Token = "0x6002CEF")]
[Address(Slot = "14")]
public abstract Vector3 MousePosition();
// Token: 0x06002CF0 RID: 11504 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002CF0")]
[Address(RVA = "0x9461D0", Offset = "0x9449D0", VA = "0x1809461D0")]
protected VirtualInput()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x04003542 RID: 13634
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4003542")]
protected Dictionary<string, CrossPlatformInputManager.VirtualAxis> m_VirtualAxes;
// Token: 0x04003543 RID: 13635
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4003543")]
protected Dictionary<string, CrossPlatformInputManager.VirtualButton> m_VirtualButtons;
// Token: 0x04003544 RID: 13636
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4003544")]
protected List<string> m_AlwaysUseVirtual;
}
}