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

Pointer Lock & Game Mode does not work when on games the use mouse capture. #276

Open
Myzomi opened this issue Sep 5, 2024 · 0 comments

Comments

@Myzomi
Copy link

Myzomi commented Sep 5, 2024

Describe the bug
When enabling pointer lock or game lock -
What happens:
Clientside: mouse is locked to middle of screen. Mouse is hidden as well.
Host: mouse is not locked and does not give relative mouse positions. Mouse is hidden.

System Description
Clients:
NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo Linux blahaj 6.9.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 19 Aug 2024 17:03:50 +0000 x86_64 GNU/Linux

Host:
NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo Linux Shark 6.10.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 19 Aug 2024 17:02:39 +0000 x86_64 GNU/Linux

KasmVNC Details
Built through: https://aur.archlinux.org/packages/kasmvncserver-bin (through yay package manager)

Binary is sourced from: kasmvncserver_jammy_1.3.1_amd64.deb

Provide the output of this command.
VNC Info:
Xvnc KasmVNC 1.3.1.230e50f7b89663316c70de7b0e3db6f6b9340489 - built Mar 15 2024 09:25:50 Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me) See http://kasmweb.com/ for information on KasmVNC. Underlying X server release 12008000, The X.Org Foundation

To Reproduce

  1. Go to IP / Domain hosting location
  2. Login and launch any game that uses mouse capture / relative positioning. (ie. Krunker, Minecraft, War Thunder)
  3. Fullscreen and enable either pointer lock or game mode ( both cause the same issue )
  4. Move (hidden) mouse enough so that on the client it hits the boundary on the screen.
  5. See as in game character violently spasms.

Expected behavior
Pointer Lock / Game Mode should be able to lock and hide your mouse. Then it should be sending relative positions to the host so that applications that use mouse capture can function properly.

Browser
Tested On:

  • Device: [Lenovo T480 (Arch Linux) & Latitude 3140 (Windows 11)]
  • OS: [ Arch Linux & Windows 11]
  • Browser [chrome & edge]
  • Version [Latest of Both]

Additional context
When opening a pause menu within a game, you can see when the (hidden) mouse is hovering over a UI button. The UI button lights up indicating it's being hovered over. Even when pointer lock or game mode is enabled.

Video of issue happening on Krunker:
https://github.com/user-attachments/assets/1db41ac9-fe17-4409-bdf1-522c980eeeb6

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

No branches or pull requests

1 participant