Skip to content

mouselock isnt working and mouse input is chaotic in video games #240

@junefranklin

Description

@junefranklin

Environment

i tried running xonotic and freedoom, both had the same issue. mouse behaviour was chaotic, and the mouse wouldnt lock to the window.

Windows build number: 21382.1000
Your Distribution version: Ubuntu 20.04
Your WSLg version: 1.0.22

Steps to reproduce

  • run game with first person mouse camera control (i played both windowed and fullscreen) (i used xonotic and freedoom to test if it were not just them being funny)
  • move mouse around once in game, -- mouse is chaotic. disabling/enabling smooth mouse movement didnt help

I suspect this is a problem with RDP? not sure. any ideas?

you can test with freedoom on ubuntu
just sudo apt install freedoom then use freedoom1 to open a game window.
same behaviour is reproducable on xonotic.

WSL logs:

  • Attach WSLg logs from /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

mouse locks onto window, providing smooth mouse movement in video game

Actual behavior

any mouse movement is amplified extremely high and you are unable to use mouse controls. mouse does not lock onto window.
wasd and keyboard and so on are responsive, but the mouse movement is weird.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions