-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathSettings.cs
124 lines (107 loc) · 4.22 KB
/
Settings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
using System.ComponentModel;
using System.Configuration;
namespace SteamController
{
[Category("1. Settings")]
[TypeConverter(typeof(ExpandableObjectConverter))]
internal sealed partial class Settings : CommonHelpers.BaseSettings
{
public static readonly Settings Default = new Settings();
public Settings() : base("Settings")
{
}
[Browsable(false)]
public bool? EnableSteamDetection
{
get { return Get<bool?>("EnableSteamDetection", null); }
set { Set("EnableSteamDetection", value); }
}
[Description("Keep X360 controller connected always - it is strongly advised to disable this option. Might be required by some games that do not like disonnecting controller. Will disable beep notifications.")]
public bool KeepX360AlwaysConnected
{
get { return Get<bool>("KeepX360AlwaysConnected", false); }
set { Set("KeepX360AlwaysConnected", value); }
}
[Description("Enable DS4 support. If disabled the DS4 will be hidden.")]
public bool EnableDS4Support
{
get { return Get<bool>("EnableDS4Support", true); }
set { Set("EnableDS4Support", value); }
}
[Description("If current foreground process uses overlay, treat it as a game.")]
public bool DetectRTSSForeground
{
get { return Get<bool>("DetectRTSSForeground", false); }
set { Set("DetectRTSSForeground", value); }
}
[Description("Create a debug log in Documents/SteamDeckTools/Logs.")]
public bool EnableDebugLogging
{
get { return Get<bool>("EnableDebugLogging", false); }
set { Set("EnableDebugLogging", value); CommonHelpers.Log.LogToFileDebug = value; }
}
[Description("Default profile used when going back to Desktop mode")]
[Browsable(true)]
[TypeConverter(typeof(ProfilesSettings.Helpers.ProfileStringConverter))]
public string DefaultProfile
{
get { return Get<string>("DefaultProfile", "Desktop"); }
set { Set("DefaultProfile", value); }
}
public enum ScrollMode : int
{
DownScrollUp = -1,
DownScrollDown = 1
}
[Description("Scroll direction for right pad and joystick.")]
[Browsable(true)]
public ScrollMode ScrollDirection
{
get { return Get<ScrollMode>("ScrollDirection", ScrollMode.DownScrollDown); }
set { Set("ScrollDirection", value); }
}
public enum SteamControllerConfigsMode
{
DoNotTouch,
Overwrite
}
[Browsable(true)]
[Description("This does replace Steam configuration for controllers to prevent double inputs. " +
"Might require going to Steam > Settings > Controller > Desktop to apply " +
"'SteamController provided empty configuration'.")]
public SteamControllerConfigsMode SteamControllerConfigs
{
get { return Get<SteamControllerConfigsMode>("SteamControllerConfigs", SteamControllerConfigsMode.Overwrite); }
set { Set("SteamControllerConfigs", value); }
}
public enum KeyboardStyles
{
DoNotShow,
WindowsTouch,
CTRL_WIN_O
}
[Browsable(true)]
[Description("Show Touch Keyboard or CTRL+WIN+O")]
public KeyboardStyles KeyboardStyle
{
get { return Get<KeyboardStyles>("KeyboardStyle", KeyboardStyles.WindowsTouch); }
set { Set("KeyboardStyle", value); }
}
[Browsable(false)]
public short DesktopJoystickDeadzone
{
get { return 5000; }
}
[Browsable(true)]
[Description("Deadzone for Left and Right sticks. Enter a number between 0 and 32767. If this number is too small you may experience drift. 5000 or smaller is recommended.")]
public short JoystickDeadzone
{
get { return Get<short>("JoystickDeadZone", 5000); }
set { Set("JoystickDeadZone", value); }
}
public override string ToString()
{
return "";
}
}
}