steam-deck-tools/SteamController/ProfilesSettings/BackPanelSettings.cs
Kamil Trzciński c6b24bc573 SteamController: Add support for circular deadzone on left/right sticks
This is inspired by the changes https://github.com/ayufan/steam-deck-tools/pull/146,
but completely rewritten.

This removes `DeltaValue` methods, and `Deadzone` fixed values.
Adds a settings value for `Deadzone` per profile.
2023-09-24 16:31:44 +02:00

44 lines
1.3 KiB
C#

using System.ComponentModel;
using System.Configuration;
namespace SteamController.ProfilesSettings
{
[Category("2. Shortcuts")]
internal abstract class BackPanelSettings : CommonHelpers.BaseSettings
{
private const String MappingsDescription = @"Only some of those keys do work. Allowed shortcuts are to be changed in future release.";
public BackPanelSettings(String settingsKey) : base(settingsKey)
{
}
[Description(MappingsDescription)]
public VirtualKeyCode L4_KEY
{
get { return Get<VirtualKeyCode>("L4_KEY", VirtualKeyCode.None); }
set { Set("L4_KEY", value); }
}
[Description(MappingsDescription)]
public VirtualKeyCode L5_KEY
{
get { return Get<VirtualKeyCode>("L5_KEY", VirtualKeyCode.None); }
set { Set("L5_KEY", value); }
}
[Description(MappingsDescription)]
public VirtualKeyCode R4_KEY
{
get { return Get<VirtualKeyCode>("R4_KEY", VirtualKeyCode.None); }
set { Set("R4_KEY", value); }
}
[Description(MappingsDescription)]
public VirtualKeyCode R5_KEY
{
get { return Get<VirtualKeyCode>("R5_KEY", VirtualKeyCode.None); }
set { Set("R5_KEY", value); }
}
}
}