mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Synchronize the indicator light status of CameraShutter at startup. (#3365)
This commit is contained in:
@@ -86,9 +86,14 @@ namespace GHelper.Input
|
|||||||
Program.acpi.DeviceInit();
|
Program.acpi.DeviceInit();
|
||||||
|
|
||||||
if (!OptimizationService.IsRunning())
|
if (!OptimizationService.IsRunning())
|
||||||
|
{
|
||||||
|
Program.acpi.DeviceGet(AsusACPI.CameraShutter);
|
||||||
listener = new KeyboardListener(HandleEvent);
|
listener = new KeyboardListener(HandleEvent);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
Logger.WriteLine("Optimization service is running");
|
Logger.WriteLine("Optimization service is running");
|
||||||
|
}
|
||||||
|
|
||||||
InitBacklightTimer();
|
InitBacklightTimer();
|
||||||
|
|
||||||
|
|||||||
@@ -481,9 +481,8 @@ namespace GHelper.Peripherals.Mouse
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
HidSharp.DeviceList.Local.GetHidDevices(VendorID(), ProductID())
|
return HidSharp.DeviceList.Local.GetHidDevices(VendorID(), ProductID())
|
||||||
.First(x => x.DevicePath.Contains(path));
|
.FirstOrDefault(x => x.DevicePath.Contains(path)) != null;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user