From e36deb256869e98a0a5b3ff7bd918618676ad563 Mon Sep 17 00:00:00 2001 From: yinyue200 Date: Mon, 11 Nov 2024 03:42:22 +0800 Subject: [PATCH] Fix the CameraShutter-related logic on UX5406 --- app/Input/InputDispatcher.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Input/InputDispatcher.cs b/app/Input/InputDispatcher.cs index d08d3619..9980108b 100644 --- a/app/Input/InputDispatcher.cs +++ b/app/Input/InputDispatcher.cs @@ -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;