Skip to content

Commit

Permalink
Fix the CameraShutter-related logic on UX5406 (#3359)
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyue200 authored Nov 10, 2024
1 parent c6ea0b0 commit 468ed27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Input/InputDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,14 @@ public static void ToggleCamera()
Program.acpi.DeviceSet(AsusACPI.CameraShutter, 0, "CameraShutterOff");
Program.toast.RunToast($"Camera On");
}
else if (cameraShutter == 262144)
{
Program.toast.RunToast($"Camera Off");
}
else if (cameraShutter == 262145)
{
Program.toast.RunToast($"Camera On");
}
else
{
if (!ProcessHelper.IsUserAdministrator()) return;
Expand Down

0 comments on commit 468ed27

Please sign in to comment.