Skip to content

Windows: Virtual HID mouse clicks suppressed after keyboard input due to touchpad sensitivity #237

Backlog

Description

@W1seGit

Describe the Bug

When using the licensed libvirtualhid driver through Sunshine, mouse clicks do not register for approximately two seconds after keyboard input.

I initially noticed this while playing League of Legends when using Player Attack Move (A + left-click). After further testing, I found that the issue occurs throughout Windows and is not specific to League.

Steps to reproduce

  1. Connect to a Windows laptop through Sunshine and Moonlight with the licensed libvirtualhid driver enabled.
  2. Set Windows touchpad sensitivity to "Medium sensitivity" (the original setting on my laptop).
  3. Press a keyboard key and immediately left-click.
  4. The mouse click does not register.
  5. Wait approximately two seconds after pressing a key and click again. The click registers normally.

A physical mouse connected directly to the host does not exhibit this behavior.

Expected Behavior

Virtual HID mouse clicks should register immediately after keyboard input, regardless of the Windows touchpad sensitivity setting, matching the behavior of a physical external mouse.

Additional Context

Workaround

Navigate to Settings → Bluetooth & devices → Touchpad → Taps → Touchpad sensitivity.

Change "Medium sensitivity" to "Most sensitive."

This completely resolved the issue for me. Another user in the LizardByte Discord also confirmed that this workaround resolved their issue.

Windows appears to be applying its touchpad input suppression behavior to the virtual HID mouse.

Environment

  • Host: ASUS ROG Flow Z13 (2025)
  • Host OS: Windows 11
  • Host GPU: AMD Radeon 8060S
  • libvirtualhid version: 2026.914.1218.10
  • Client OS: CachyOS (Hyprland)
  • Moonlight version: 6.2.0
  • Virtual HID license: Active

Related discussion

Discussed with @ReenigneArcher in the LizardByte Discord thread "Mouse cannot move in League of Legends."

Activity

  1. ReenigneArcher commented on Nov 27, 2026

    @ReenigneArcher
    Member

    Thanks for narrowing this down. Could you test the Windows driver build from #238 on the laptop where you reproduced the missed clicks?

    1. On the Windows host, go to Settings → Bluetooth & devices → Touchpad → Taps → Touchpad sensitivity and select Medium sensitivity. With your current driver, confirm that a left click immediately after a keypress is still dropped.
    2. Sign in to GitHub and download windows-driver-installer from the Artifacts section at the bottom of the CI run. CI run · Direct artifact download
    3. Extract the ZIP and run libvirtualhid-Windows-AMD64-driver-installer.msi on the Windows host, accepting the administrator prompt. This test build can replace your installed release. The MSI automatically trusts its bundled CI test certificate, which is valid for seven days from the build. Restart Windows if the installer asks. If the install is blocked, please reply with the error.
    4. Open PowerShell on the host and run pnputil /enum-devices /deviceid "ROOT\LIBVIRTUALHID" /properties. Check that DriverVersion is 0.0.238.0. Reopen Sunshine if it closed during setup and reconnect with Moonlight using the same licensed Virtual HID setup. If you want to confirm that the HID mouse is active during the stream, run pnputil /enum-devices /connected /class Mouse and look for the libvirtualhid mouse ID beginning with HID\VID_1209&PID_0003.
    5. With Medium sensitivity still selected, press A and immediately left-click several times using Moonlight. Try it on the Windows desktop first, then in League if the desktop clicks work.

    Please let us know whether the immediate clicks register on the desktop and in League. If you still see the delay, please include the installed driver version and whether clicks work again after waiting about two seconds.

    You can return to your previous setup by reinstalling the official MSI you had before the test. libvirtualhid releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions