Skip to content

Commit 14566bd

Browse files
committed
Hardware touchpad toggle for ROG devices #3604
1 parent bdcb20f commit 14566bd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/Input/InputDispatcher.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,14 @@ static void ToggleTouchpadEvent(bool hotkey = false)
653653

654654
static void ToggleTouchpad()
655655
{
656-
KeyboardHook.KeyKeyKeyPress(Keys.LWin, Keys.LControlKey, Keys.F24, 50);
656+
if (AppConfig.IsROG())
657+
{
658+
AsusHid.WriteInput([AsusHid.INPUT_ID, 0xF4, 0x6B], "USB Touchpad");
659+
} else
660+
{
661+
KeyboardHook.KeyKeyKeyPress(Keys.LWin, Keys.LControlKey, Keys.F24, 50);
662+
}
663+
657664
}
658665

659666
static void SleepEvent()

0 commit comments

Comments
 (0)