public override void OnUpdate() { if (Input.GetKeyDown(KeyCode.P) && Input.GetKey(KeyCode.LeftShift) && Input.GetKey(KeyCode.LeftControl)) { disablePerformanceStatsEntry.Value = !disablePerformanceStatsEntry.Value; disablePerformanceStatsEntry.Save(); MelonLogger.Msg("Avatar Performance Stats is now " + (!disablePerformanceStatsEntry.Value ? "ENABLED" : "DISABLED")); } }
/// <summary> /// Resets the input settings back to default /// </summary> public static void ResetSettings() { ClickThresholdEntry.ResetToDefault(); ClickThresholdEntry.Save(); DoubleClickThresholdEntry.ResetToDefault(); DoubleClickThresholdEntry.Save(); HoldTimeThresholdEntry.ResetToDefault(); HoldTimeThresholdEntry.Save(); TriggerThresholdEntry.ResetToDefault(); TriggerThresholdEntry.Save(); }