mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Fix the CameraShutter-related logic on UX5406 (#3359)
This commit is contained in:
@@ -956,6 +956,14 @@ namespace GHelper.Input
|
|||||||
Program.acpi.DeviceSet(AsusACPI.CameraShutter, 0, "CameraShutterOff");
|
Program.acpi.DeviceSet(AsusACPI.CameraShutter, 0, "CameraShutterOff");
|
||||||
Program.toast.RunToast($"Camera On");
|
Program.toast.RunToast($"Camera On");
|
||||||
}
|
}
|
||||||
|
else if (cameraShutter == 262144)
|
||||||
|
{
|
||||||
|
Program.toast.RunToast($"Camera Off");
|
||||||
|
}
|
||||||
|
else if (cameraShutter == 262145)
|
||||||
|
{
|
||||||
|
Program.toast.RunToast($"Camera On");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!ProcessHelper.IsUserAdministrator()) return;
|
if (!ProcessHelper.IsUserAdministrator()) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user