Open CoconutMacaroon opened 3 years ago
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 chocolate-doom
.
(https://github.com/chocolate-doom/chocolate-doom)
WSLg does not seem to support grabbing the mouse in general, the same thing happens with
chocolate-doom
. (https://github.com/chocolate-doom/chocolate-doom)
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.