mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
namespace SteamController.Profiles.Predefined
|
|
{
|
|
public sealed class SteamProfile : Default.ShortcutsProfile
|
|
{
|
|
public SteamProfile()
|
|
{
|
|
}
|
|
|
|
public override System.Drawing.Icon Icon
|
|
{
|
|
get
|
|
{
|
|
if (CommonHelpers.WindowsDarkMode.IsDarkModeEnabled)
|
|
return Resources.microsoft_xbox_controller_off_white;
|
|
else
|
|
return Resources.microsoft_xbox_controller_off;
|
|
}
|
|
}
|
|
|
|
public override String FullName
|
|
{
|
|
get { return Name + " uses Steam Input"; }
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|