Improve method visibility

This commit is contained in:
Kamil Trzciński 2022-11-27 09:19:34 +01:00
parent 509bc588a3
commit 8f69ec772b
7 changed files with 28 additions and 24 deletions

View file

@ -32,7 +32,7 @@ namespace SteamController.Profiles
}
return Status.Done;
}
else if (c.Steam.BtnOptions.HoldNext(HoldToSwitchDesktop, ShortcutConsumed, "SwitchToDesktop"))
else if (c.Steam.BtnOptions.HoldChain(HoldToSwitchDesktop, ShortcutConsumed, "SwitchToDesktop"))
{
c.ToggleDesktopMode();
return Status.Done;

View file

@ -10,9 +10,9 @@ namespace SteamController.Profiles
public bool IsDone { get; set; }
}
public String Name { get; set; } = "";
public bool Visible { get; set; } = true;
public bool IsDesktop { get; set; }
public virtual String Name { get; set; } = "";
public virtual bool Visible { get; set; } = true;
public virtual bool IsDesktop { get; set; }
public abstract bool Selected(Context context);

View file

@ -21,7 +21,6 @@ namespace SteamController.Profiles
Log.TraceLine("X360: Feedback Large: {0}", context.X360.FeedbackLargeMotor.Value);
context.Steam.SetHaptic(
1, GetHapticAmplitude(context.X360.FeedbackLargeMotor), FeedbackPeriod, FeedbackCount);
context.X360.FeedbackLargeMotor = null;
}
if (context.X360.FeedbackSmallMotor.HasValue)
@ -29,9 +28,10 @@ namespace SteamController.Profiles
Log.TraceLine("X360: Feedback Small: {0}", context.X360.FeedbackSmallMotor.Value);
context.Steam.SetHaptic(
0, GetHapticAmplitude(context.X360.FeedbackSmallMotor), FeedbackPeriod, FeedbackCount);
context.X360.FeedbackSmallMotor = null;
}
context.X360.ResetFeedback();
return Status.Continue;
}