Split Profiles into Profiles/Default and Profiles/Predefined

This commit is contained in:
Kamil Trzciński 2022-12-08 20:57:20 +01:00
parent 86b73001a2
commit bdcb70d685
9 changed files with 19 additions and 26 deletions

View file

@ -0,0 +1,28 @@
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;
}
}
}