-
Notifications
You must be signed in to change notification settings - Fork 309
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 look in Minecraft in Ubuntu 20.04 in WSL2 is broken #374
Comments
Want to continue using Microsoft input method in WSLG |
WSLg does not seem to support grabbing the mouse in general, the same thing happens with |
Sorry to resurrect this thread, but was there ever a resolution on this? I'm actually working with chocolate-doom as of a few days ago, and decided to build it through WSL2, but every time I go to test my mouse goes nuts. Sensitivity is off the charts and no matter which direction I move the mouse, I always look right. The same code built as a Windows binary runs fine. |
The exact same thing happens with Minetest. |
The exact same thing is happening with a custom glfw application. (ubuntu 22.04) |
Environment
Steps to reproduce
Install the latest version of Minecraft Java edition into WSL2. I did this by installing Firefox (in WSL2), downloading the .deb file, installing the prerequisties, and then installing the .deb file. I then ran
minecraft-launcher
, which opened the launcher (in WSL) and launched the latest version of the game (unmodded 1.17.1). I joined a realm (although a server/world should have the same issue), and tried to look arround. I could rotate my character by moving the mouse left-right but I couldn't make my character look up, by moving the mouse up. WASD to move worked, however.WSL logs:
/mnt/wslg
You can access the wslg logs using explorer at:
\\wsl$\<Distro-Name>\mnt\wslg
(e.g.:\\wsl$\Ubuntu-20.04\mnt\wslg
)puseaudio.log
weston.log
versions.txt
Expected behavior
When I move the mouse to look, I should be able to look up/down instead of just left/right. Also, the game should hide/capture the mouse cursor. Instead, I can see the cursor, which shouldn't happen.
Actual behavior
I can use the mouse to rotate/spin my character, but I can't look up/down. Also, the mouse cursor is visable.
The text was updated successfully, but these errors were encountered: