// Token: 0x06000029 RID: 41 RVA: 0x00002DC4 File Offset: 0x00000FC4 public static void UpdateInputs() { Manager.HandleFrameRates(); Manager.CheckControls(); Manager.FrameStepping(); if (Manager.HasFlag(Manager.state, State.Enable)) { Manager.Running = true; if (Manager.HasFlag(Manager.state, State.Record)) { Manager.controller.RecordPlayer(); } else { Manager.controller.PlaybackPlayer(); if (!Manager.controller.CanPlayback) { Manager.DisableRun(); } } Manager.CurrentStatus = string.Concat(new object[] { Manager.controller.Current.Line, "[", Manager.controller.ToString(), "]" }); return; } Manager.Running = false; Manager.CurrentStatus = null; }
public static void ConvertToLibTas(string path) { if (string.IsNullOrEmpty(path)) { path = "libTAS_inputs.txt"; } Manager.DisableRun(); StartExport(path); Manager.Controller.RefreshInputs(true); Manager.DisableRun(); }
// Token: 0x06000030 RID: 48 RVA: 0x00003328 File Offset: 0x00001528 private static void CheckControls() { bool isLeftStickPressed = Manager.xbox.IsLeftStickPressed; bool isRightStickPressed = Manager.xbox.IsRightStickPressed; bool flag = Manager.xbox.RightTrigger >= 245; bool flag2 = Manager.xbox.LeftTrigger >= 245; bool isDPadDownPressed = Manager.xbox.IsDPadDownPressed; if (flag && flag2) { if (!Manager.HasFlag(Manager.state, State.Enable) && isRightStickPressed) { Manager.nextState |= State.Enable; } else if (Manager.HasFlag(Manager.state, State.Enable) && isDPadDownPressed) { Manager.DisableRun(); } else if (!Manager.HasFlag(Manager.state, State.Enable) && !Manager.HasFlag(Manager.state, State.Record) && isLeftStickPressed) { Manager.nextState |= State.Record; } } if (!flag && !flag2) { if (Manager.HasFlag(Manager.nextState, State.Enable)) { Manager.EnableRun(); return; } if (Manager.HasFlag(Manager.nextState, State.Record)) { Manager.RecordRun(); } } }