mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-04 22:07:40 +00:00
Add configurable BackPanel keys (allowed mappings are subject to change)
This commit is contained in:
parent
8c26efa334
commit
68f51ff4f0
10 changed files with 214 additions and 6 deletions
57
SteamController/ProfilesSettings/BackPanelSettings.cs
Normal file
57
SteamController/ProfilesSettings/BackPanelSettings.cs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
using System.ComponentModel;
|
||||
using System.Configuration;
|
||||
using WindowsInput;
|
||||
|
||||
namespace SteamController.ProfilesSettings
|
||||
{
|
||||
[Category("Mappings")]
|
||||
internal sealed class BackPanelSettings : BaseSettings
|
||||
{
|
||||
private const String MappingsDescription = @"Only some of those keys do work. Allowed mappings are to be changed in future release.";
|
||||
|
||||
public static BackPanelSettings X360 { get; } = (BackPanelSettings)ApplicationSettingsBase.Synchronized(
|
||||
new BackPanelSettings("X360BackPanelSettings"));
|
||||
public static BackPanelSettings Desktop { get; } = (BackPanelSettings)ApplicationSettingsBase.Synchronized(
|
||||
new BackPanelSettings("DesktopBackPanelSettings"));
|
||||
|
||||
public BackPanelSettings(String settingsKey) : base(settingsKey)
|
||||
{
|
||||
}
|
||||
|
||||
[UserScopedSettingAttribute()]
|
||||
[DefaultSettingValueAttribute("None")]
|
||||
[Description(MappingsDescription)]
|
||||
public VirtualKeyCode L4
|
||||
{
|
||||
get { return ((VirtualKeyCode)(this["L4"])); }
|
||||
set { this["L4"] = value; }
|
||||
}
|
||||
|
||||
[UserScopedSettingAttribute()]
|
||||
[DefaultSettingValueAttribute("None")]
|
||||
[Description(MappingsDescription)]
|
||||
public VirtualKeyCode L5
|
||||
{
|
||||
get { return ((VirtualKeyCode)(this["L5"])); }
|
||||
set { this["L5"] = value; }
|
||||
}
|
||||
|
||||
[UserScopedSettingAttribute()]
|
||||
[DefaultSettingValueAttribute("None")]
|
||||
[Description(MappingsDescription)]
|
||||
public VirtualKeyCode R4
|
||||
{
|
||||
get { return ((VirtualKeyCode)(this["R4"])); }
|
||||
set { this["R4"] = value; }
|
||||
}
|
||||
|
||||
[UserScopedSettingAttribute()]
|
||||
[DefaultSettingValueAttribute("None")]
|
||||
[Description(MappingsDescription)]
|
||||
public VirtualKeyCode R5
|
||||
{
|
||||
get { return ((VirtualKeyCode)(this["R5"])); }
|
||||
set { this["R5"] = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue