Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse Pass-through #1264

Open
gftabor opened this issue Jul 2, 2024 · 1 comment
Open

Mouse Pass-through #1264

gftabor opened this issue Jul 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@gftabor
Copy link

gftabor commented Jul 2, 2024

Is your feature request related to a problem:

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. The mouse is visible to lsusb.
image
However, it does not move the cursor when in a linux gui application and is not detected by xinput.

dorssel/usbipd-win#981

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. This would be easily achievable with a traditional VM.

Describe the solution you'd like:

Second mouse to be registered inside linux where linux sees 2 mice, 1 from the direct pass-through and the other whenever my application is in focus. Currently, it only seems to be the latter.

Describe alternatives you've considered:

Only support pass-through mouse instead of the mouse from native system.

Additional context:

No response

@gftabor gftabor added the enhancement New feature or request label Jul 2, 2024
@gftabor
Copy link
Author

gftabor commented Jul 2, 2024

I think because WSLg uses wayland first I should be using
sudo libinput list-devices
instead of xinput to get devices, but that returns nothing.

It looks like that should build off /dev/input but that doesn't exist in WSLG

image
from
https://wayland.freedesktop.org/libinput/doc/latest/what-is-libinput.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant