mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
32 lines
929 B
C#
32 lines
929 B
C#
using SteamController.ProfilesSettings;
|
|
|
|
namespace SteamController.Profiles.Default
|
|
{
|
|
public abstract class BackPanelShortcutsProfile : GuideShortcutsProfile
|
|
{
|
|
internal abstract ProfilesSettings.BackPanelSettings BackPanelSettings { get; }
|
|
|
|
public override Status Run(Context c)
|
|
{
|
|
if (base.Run(c).IsDone)
|
|
{
|
|
return Status.Done;
|
|
}
|
|
|
|
BackPanelShortcuts(c);
|
|
|
|
return Status.Continue;
|
|
}
|
|
|
|
protected virtual void BackPanelShortcuts(Context c)
|
|
{
|
|
var settings = BackPanelSettings;
|
|
|
|
c.Keyboard[settings.L4_KEY.ToWindowsInput()] = c.Steam.BtnL4;
|
|
c.Keyboard[settings.L5_KEY.ToWindowsInput()] = c.Steam.BtnL5;
|
|
c.Keyboard[settings.R4_KEY.ToWindowsInput()] = c.Steam.BtnR4;
|
|
c.Keyboard[settings.R5_KEY.ToWindowsInput()] = c.Steam.BtnR5;
|
|
}
|
|
}
|
|
}
|