DEBUG allows to keep X360 controller always connected

This commit is contained in:
Kamil Trzciński 2022-12-10 10:45:37 +01:00
parent 8ff22739c5
commit 45ab31ddcf
3 changed files with 11 additions and 1 deletions

View file

@ -20,3 +20,4 @@
- All SteamDeckTools settings are stored in `.ini` file in root folder
- Detect SAS (Secure Attention Sequence) in a way that does not prevent screen sleep
- Recreate X360 device on fatal failure (might happen after resume)
- DEBUG allows to keep X360 controller always connected

View file

@ -91,7 +91,7 @@ namespace SteamController.Devices
}
submitReport = false;
Connected = false;
Connected = SettingsDebug.Default.KeepX360AlwaysConnected;
}
private void SetConnected(bool wantsConnected)
@ -133,6 +133,8 @@ namespace SteamController.Devices
internal void Beep()
{
if (SettingsDebug.Default.KeepX360AlwaysConnected)
return;
if (device is null)
return;

View file

@ -13,6 +13,13 @@ 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;