mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
31 lines
707 B
C#
31 lines
707 B
C#
using Nefarius.ViGEm.Client.Targets.Xbox360;
|
|
|
|
namespace SteamController.Profiles
|
|
{
|
|
public sealed class SteamProfile : DefaultShortcutsProfile
|
|
{
|
|
public SteamProfile()
|
|
{
|
|
}
|
|
|
|
public override bool Selected(Context context)
|
|
{
|
|
return context.Enabled && context.SteamUsesController;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|