steam-deck-tools/SteamController/Profiles/Predefined/SteamProfile.cs

29 lines
771 B
C#

namespace SteamController.Profiles.Predefined
{
public sealed class SteamProfile : Default.ShortcutsProfile
{
public SteamProfile()
{
}
public override bool Selected(Context context)
{
return context.Enabled && context.State.SteamUsesSteamInput && Settings.Default.SteamControllerConfigs != Settings.SteamControllerConfigsMode.Overwrite;
}
public override Status Run(Context context)
{
// Steam does not use Lizard
context.Steam.LizardButtons = false;
context.Steam.LizardMouse = false;
if (base.Run(context).IsDone)
{
return Status.Done;
}
return Status.Continue;
}
}
}