mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
29 lines
771 B
C#
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;
|
|
}
|
|
}
|
|
}
|