Skip to content

Commit

Permalink
Hardware touchpad toggle for ROG devices #3607
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Jan 24, 2025
1 parent bdcb20f commit 0434fc1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/Input/InputDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,14 @@ static void ToggleTouchpadEvent(bool hotkey = false)

static void ToggleTouchpad()
{
KeyboardHook.KeyKeyKeyPress(Keys.LWin, Keys.LControlKey, Keys.F24, 50);
if (AppConfig.IsROG())
{
AsusHid.WriteInput([AsusHid.INPUT_ID, 0xF4, 0x6B], "USB Touchpad");
} else
{
KeyboardHook.KeyKeyKeyPress(Keys.LWin, Keys.LControlKey, Keys.F24, 50);
}

}

static void SleepEvent()
Expand Down

0 comments on commit 0434fc1

Please sign in to comment.