mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-04 22:07:40 +00:00
Allow to change scroll direction
This commit is contained in:
parent
271cb5d94e
commit
b0863b89ef
4 changed files with 19 additions and 3 deletions
|
|
@ -3,7 +3,6 @@ using System.Configuration;
|
|||
|
||||
namespace SteamController
|
||||
{
|
||||
|
||||
[Category("Settings")]
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
internal sealed partial class Settings : ApplicationSettingsBase
|
||||
|
|
@ -37,6 +36,22 @@ namespace SteamController
|
|||
set { this["DefaultProfile"] = value; }
|
||||
}
|
||||
|
||||
public enum ScrollMode : int
|
||||
{
|
||||
DownScrollUp = -1,
|
||||
DownScrollDown = 1
|
||||
}
|
||||
|
||||
[UserScopedSetting]
|
||||
[DefaultSettingValue("DownScrollDown")]
|
||||
[Description("Scroll direction for right pad and joystick.")]
|
||||
[BrowsableAttribute(true)]
|
||||
public ScrollMode ScrollDirection
|
||||
{
|
||||
get { return ((ScrollMode)(this["ScrollDirection"])); }
|
||||
set { this["ScrollDirection"] = value; }
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[UserScopedSetting]
|
||||
[BrowsableAttribute(true)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue