dorssel / usbipd-win

Windows software for sharing locally connected USB devices to other machines, including Hyper-V guests and WSL 2.
GNU General Public License v3.0
3.35k stars 212 forks source link

Mouse passthrough #981

Open gftabor opened 4 weeks ago

gftabor commented 4 weeks ago

Not sure if this is possible, but my goal is to use WSL2 with a second mouse that can only interact within a linux application. Using usbipd-win I am able to pass the host mouse through to Ubuntu. This would be possible with a full VM easily enough but WSL is weird

image

lsusb shows the mouse, but I can't detect it as an input, and it doesn't work to move my cursor when I have a linux application focused.

My final goal would be to be able to click inside an application that is not focused on a second mouse while using my primary mouse for other tasks.

dorssel commented 4 weeks ago

From a usbipd-win perspective, you've done everything right. This is WSLg question. Better ask over there: https://github.com/microsoft/wslg