mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-08 17:50:14 +01:00
The X360.Beep() is implemented as a separate device
This commit is contained in:
parent
558d37e940
commit
44e5751d75
|
|
@ -93,19 +93,15 @@ namespace SteamController.Devices
|
|||
|
||||
internal void Beep()
|
||||
{
|
||||
// TODO: reconnect to beep
|
||||
if (isConnected)
|
||||
{
|
||||
device?.Disconnect();
|
||||
Thread.Sleep(100);
|
||||
device?.Connect();
|
||||
}
|
||||
else
|
||||
{
|
||||
device?.Connect();
|
||||
Thread.Sleep(100);
|
||||
device?.Disconnect();
|
||||
}
|
||||
var client = this.client;
|
||||
if (client is null)
|
||||
return;
|
||||
|
||||
// Generate dummy xbox360 controller to generate notification
|
||||
var device = client.CreateXbox360Controller();
|
||||
device.Connect();
|
||||
Thread.Sleep(100);
|
||||
device.Disconnect();
|
||||
}
|
||||
|
||||
internal void Update()
|
||||
|
|
|
|||
Loading…
Reference in a new issue