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
Gamepad support in WSL2 (/dev/jsx) #7747
Comments
Actually I am pretty sure this is tied to the Linux HID subsystem so I am sure there are more serious potential use cases by having this enabled. It would apply for any USB input device. |
I have been facing the same. |
I got xbox controller attached to wsl2 using usbipd and it appears under /dev/bus/usb/00x/ devices but not under /dev/input/jsx device. Is it some driver issue or what? |
Have the same problem. |
Hello, i temporarily solved missing xpad by rebuilding kernel:
if u don't want to build kernel yourself:
i using kernel 5.10.102.1 and add to config these lines:
link that might help: hope this helps you too! |
Add kernel-parport please. |
This solution worked great for me, thanks for the help! Just to add on a little bit to the solution to get my xbox elite series 1 controller working (wired): Without the changes to the kernel, my xbox controller would not show up under I ran After that, I ran jstest and commands are showing up just fine. However, for my application, it still wasn't detected. If that's the case, run |
I made the discussed edits to the most recent kernel in this repo. |
Is your feature request related to a problem? Please describe.
It would be nice to have gamepads exposed to Linux guests for the convince of running and testing cross platform programs that can make use of gamepads solely on Windows using WSLg. You can already attach USB gamepads to the WSL2 instance using usbipd-win, however the system dsitro does not have gamepad support enabled since this use-case was not considered.
Describe the solution you'd like
The system distro to have USB gamepad support enabled by default.
Describe alternatives you've considered
It is possible to modify the system distro kernel to enable USB gamepad support, however this is a rather large maintenance burden for such a dinky little feature since you have to continuously keep the custom kernel up to date.
The text was updated successfully, but these errors were encountered: