mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-21 06:03:52 +00:00
Fix beep on controller
This commit is contained in:
parent
22b5b59003
commit
da7508eb7e
1 changed files with 4 additions and 4 deletions
|
|
@ -63,12 +63,12 @@ namespace SteamController.Devices
|
|||
Connected = false;
|
||||
}
|
||||
|
||||
private void SetConnected(bool connected)
|
||||
private void SetConnected(bool wantsConnected)
|
||||
{
|
||||
if (Connected == isConnected)
|
||||
if (wantsConnected == isConnected)
|
||||
return;
|
||||
|
||||
if (connected)
|
||||
if (wantsConnected)
|
||||
{
|
||||
device?.Connect();
|
||||
TraceLine("Connected X360 Controller.");
|
||||
|
|
@ -79,7 +79,7 @@ namespace SteamController.Devices
|
|||
TraceLine("Disconnected X360 Controller.");
|
||||
}
|
||||
|
||||
isConnected = Connected;
|
||||
isConnected = wantsConnected;
|
||||
}
|
||||
|
||||
internal void Beep()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue