mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-21 06:03:52 +00:00
Improve method visibility
This commit is contained in:
parent
509bc588a3
commit
8f69ec772b
7 changed files with 28 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue