Allow to configure StartupProfile in SteamController.dll.config

This commit is contained in:
Kamil Trzciński 2022-11-27 15:01:15 +01:00
parent 717c1e9ba7
commit aeb035da5d
5 changed files with 21 additions and 0 deletions

View file

@ -15,6 +15,7 @@
- Configure Steam to switch between Steam Input or X360 Controller mode
- Steam Games detection also works for X360 Controller mode
- STEAM+B will kill foreground if hold longer than 3s
- Allow to configure `StartupProfile` in `SteamController.dll.config`
## 0.4.x

View file

@ -10,6 +10,9 @@
<setting name="EnableSteamDetection" serializeAs="String">
<value>False</value>
</setting>
<setting name="StartupProfile" serializeAs="String">
<value>Desktop</value>
</setting>
</SteamController.Settings>
</userSettings>
</configuration>

View file

@ -125,6 +125,8 @@ namespace SteamController
stopwatch.Start();
context.SelectProfile(Settings.Default.StartupProfile);
contextThread = new Thread(ContextState_Update);
contextThread.Start();
}

View file

@ -34,5 +34,17 @@ namespace SteamController {
this["EnableSteamDetection"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Desktop")]
public string StartupProfile {
get {
return ((string)(this["StartupProfile"]));
}
set {
this["StartupProfile"] = value;
}
}
}
}

View file

@ -5,5 +5,8 @@
<Setting Name="EnableSteamDetection" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="StartupProfile" Type="System.String" Scope="User">
<Value Profile="(Default)">Desktop</Value>
</Setting>
</Settings>
</SettingsFile>