mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-21 06:03:52 +00:00
Allow to assign BackPanel keys to X360 controller (breaks all current configs to set mappings)
This commit is contained in:
parent
476ca5a5e9
commit
9adb25be21
10 changed files with 158 additions and 28 deletions
|
|
@ -16,14 +16,14 @@ namespace SteamController.Profiles
|
|||
return Status.Continue;
|
||||
}
|
||||
|
||||
private void BackPanelShortcuts(Context c)
|
||||
protected virtual 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;
|
||||
c.Keyboard[settings.L4_KEY] = c.Steam.BtnL4;
|
||||
c.Keyboard[settings.L5_KEY] = c.Steam.BtnL5;
|
||||
c.Keyboard[settings.R4_KEY] = c.Steam.BtnR4;
|
||||
c.Keyboard[settings.R5_KEY] = c.Steam.BtnR5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace SteamController.Profiles
|
|||
|
||||
internal override ProfilesSettings.BackPanelSettings BackPanelSettings
|
||||
{
|
||||
get { return ProfilesSettings.BackPanelSettings.Desktop; }
|
||||
get { return ProfilesSettings.DesktopPanelSettings.Default; }
|
||||
}
|
||||
|
||||
public override bool Selected(Context context)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace SteamController.Profiles
|
|||
|
||||
internal override ProfilesSettings.BackPanelSettings BackPanelSettings
|
||||
{
|
||||
get { return ProfilesSettings.BackPanelSettings.X360; }
|
||||
get { return ProfilesSettings.X360BackPanelSettings.Default; }
|
||||
}
|
||||
|
||||
public override Status Run(Context context)
|
||||
|
|
@ -62,5 +62,17 @@ namespace SteamController.Profiles
|
|||
|
||||
return Status.Continue;
|
||||
}
|
||||
|
||||
protected override void BackPanelShortcuts(Context c)
|
||||
{
|
||||
base.BackPanelShortcuts(c);
|
||||
|
||||
var settings = ProfilesSettings.X360BackPanelSettings.Default;
|
||||
|
||||
c.X360[settings.L4_X360] = c.Steam.BtnL4;
|
||||
c.X360[settings.L5_X360] = c.Steam.BtnL5;
|
||||
c.X360[settings.R4_X360] = c.Steam.BtnR4;
|
||||
c.X360[settings.R5_X360] = c.Steam.BtnR5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue