mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
30 lines
800 B
C#
30 lines
800 B
C#
namespace SteamController.Profiles
|
|
{
|
|
public abstract class DefaultBackPanelShortcutsProfile : DefaultGuideShortcutsProfile
|
|
{
|
|
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;
|
|
}
|
|
|
|
private void BackPanelShortcuts(Context c)
|
|
{
|
|
var settings = BackPanelSettings;
|
|
|
|
c.Keyboard[settings.L4] = c.Steam.BtnL4;
|
|
c.Keyboard[settings.L5] = c.Steam.BtnL5;
|
|
c.Keyboard[settings.R4] = c.Steam.BtnR4;
|
|
c.Keyboard[settings.R5] = c.Steam.BtnR5;
|
|
}
|
|
}
|
|
}
|