mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 14:53:48 +00:00
Split Profiles into Profiles/Default and Profiles/Predefined
This commit is contained in:
parent
86b73001a2
commit
bdcb70d685
9 changed files with 19 additions and 26 deletions
|
|
@ -0,0 +1,31 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue