SteamController: Move KeepX360AlwaysConnected to Settings

This commit is contained in:
Kamil Trzciński 2023-02-10 20:50:44 +01:00
parent 70237ad9d4
commit de4e718703
5 changed files with 12 additions and 9 deletions

View file

@ -10,6 +10,7 @@
## 0.6.x
- SteamController: Add initial `DS4` support (with Gyro, Accel, Trackpads and Haptics)
- SteamController: Move `KeepX360AlwaysConnected` to `Settings`
- PowerControl: Install custom resolutions (EDID) (experimental feature)
- SteamController: Add `X360: No Touchpads` profile
- All: Show `Missing RTSS` button to install RTSS

View file

@ -419,7 +419,9 @@ namespace SteamController
DS4Haptic = ProfilesSettings.HapticSettings.DS4,
#endif
Application = Settings.Default,
#if DEBUG
DEBUG = SettingsDebug.Default
#endif
}
};

View file

@ -87,7 +87,7 @@ namespace SteamController.Devices
lastPressed = pressed;
pressed = new Dictionary<Xbox360Button, DateTime>();
submitReport = false;
Connected = SettingsDebug.Default.KeepX360AlwaysConnected;
Connected = Settings.Default.KeepX360AlwaysConnected;
}
private void SetConnected(bool wantsConnected)
@ -144,7 +144,7 @@ namespace SteamController.Devices
internal void Beep()
{
if (SettingsDebug.Default.KeepX360AlwaysConnected)
if (Settings.Default.KeepX360AlwaysConnected)
return;
if (device is null)
return;

View file

@ -20,6 +20,13 @@ namespace SteamController
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("If current foreground process uses overlay, treat it as a game.")]
public bool DetectRTSSForeground
{

View file

@ -13,13 +13,6 @@ namespace SteamController
{
}
[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("Use Lizard Buttons instead of emulated. This option is only for testing purposes.")]
public bool LizardButtons { get; set; } = false;