mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-30 12:14:24 +01:00
DEBUG allows to keep X360 controller always connected
This commit is contained in:
parent
8ff22739c5
commit
45ab31ddcf
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue