Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

77 lines
2.2 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Inputs
{
// Token: 0x020025F1 RID: 9713
[Token(Token = "0x20025F1")]
[Serializable]
public class DeprecatedAxisSettings
{
// Token: 0x0600F825 RID: 63525 RVA: 0x00389940 File Offset: 0x00387B40
[Token(Token = "0x600F825")]
[Address(RVA = "0x1AED5C0", Offset = "0x1AEC5C0", VA = "0x181AED5C0")]
public float DAPOOKKDMKB(float KHKMIKDCHPM)
{
float num = this.deadzone;
if (num < KHKMIKDCHPM)
{
float num2 = Mathf.InverseLerp(num, KHKMIKDCHPM, KHKMIKDCHPM);
AnimationCurve animationCurve = this.inputCurve;
num = num2;
if (animationCurve != 0 && animationCurve.length > 0)
{
num = this.inputCurve.Evaluate(KHKMIKDCHPM);
}
return num;
}
throw new NullReferenceException();
}
// Token: 0x0600F826 RID: 63526 RVA: 0x00389990 File Offset: 0x00387B90
[Token(Token = "0x600F826")]
[Address(RVA = "0x1AED4D0", Offset = "0x1AEC4D0", VA = "0x181AED4D0")]
public static float DAPOOKKDMKB(float KHKMIKDCHPM, DeprecatedAxisSettings GHGBPMPLLBK)
{
if (GHGBPMPLLBK != 0 && GHGBPMPLLBK.deadzone < KHKMIKDCHPM)
{
float num = GHGBPMPLLBK.topDeadzone;
float num2 = Mathf.InverseLerp(KHKMIKDCHPM, num, KHKMIKDCHPM);
AnimationCurve animationCurve = GHGBPMPLLBK.inputCurve;
if (animationCurve != 0 && animationCurve.length > 0)
{
AnimationCurve animationCurve2 = GHGBPMPLLBK.inputCurve;
return animationCurve2.Evaluate(KHKMIKDCHPM);
}
}
return KHKMIKDCHPM;
}
// Token: 0x0600F827 RID: 63527 RVA: 0x003899E8 File Offset: 0x00387BE8
[Token(Token = "0x600F827")]
[Address(RVA = "0x1AED6A0", Offset = "0x1AEC6A0", VA = "0x181AED6A0")]
public DeprecatedAxisSettings()
{
}
// Token: 0x0400A4C1 RID: 42177
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400A4C1")]
[SerializeField]
private float deadzone = 0.2f;
// Token: 0x0400A4C2 RID: 42178
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x400A4C2")]
[SerializeField]
private float topDeadzone = 0.97f;
// Token: 0x0400A4C3 RID: 42179
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400A4C3")]
[SerializeField]
private AnimationCurve inputCurve;
}
}