This commit is contained in:
Serge
2024-03-19 22:09:55 +01:00
parent 091a00cba0
commit 0c3b87b4cb
2 changed files with 14 additions and 0 deletions

View File

@@ -47,6 +47,15 @@ public static class AsusHid
if (z13 is not null) return z13.Open();
}
if (AppConfig.IsS17())
{
var s17 = devices.Where(device => device.ProductID == 0x18c6).FirstOrDefault();
if (s17 is not null) return s17.Open();
}
foreach (var device in devices)
Logger.WriteLine($"Input available: {device.DevicePath} {device.ProductID.ToString("X")} {device.GetMaxFeatureReportLength()}");
return devices.FirstOrDefault()?.Open();
}
catch (Exception ex)