mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 14:53:48 +00:00
Split Profiles into Profiles/Default and Profiles/Predefined
This commit is contained in:
parent
86b73001a2
commit
bdcb70d685
9 changed files with 19 additions and 26 deletions
28
SteamController/Profiles/Predefined/SteamProfile.cs
Normal file
28
SteamController/Profiles/Predefined/SteamProfile.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue