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

Mouse behaves strange in Minetest on a default image #310

Open
hochbit opened this issue Jan 15, 2025 · 4 comments
Open

Mouse behaves strange in Minetest on a default image #310

hochbit opened this issue Jan 15, 2025 · 4 comments

Comments

@hochbit
Copy link

hochbit commented Jan 15, 2025

Describe the bug

Using Blender, OpenSCAD, mintest, colobot

While in Blender, OpenSCAD, colobot everything works as expected, zooming moving the mouse.
But in minetest the mouse moves very erratic.

Mostly the view is heading to the sky or floor of the environment and rotating there
in high speed when moving the mouse. Also the movement is mostly not so much related on
what you are doing with the mouse, its hard to describe - most of the time it does not matter in which direction you
move the mouse.
It circles just in one way no matter which direction you move. Sometimes it possible to make the mouse move
upwards or downwards - do not know when and how. If you get it to the middle and move very slowly the moving is
almost normal but very delayed like moving in mud.

System Description
docker run --rm -it -p 3000:3000 lsiobase/kasmvnc:ubuntujammy-version-d4c49b82

cat /etc/os-release

PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

uname -a

Linux e8444b43b946 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec  5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

KasmVNC Details
Container lsiobase/kasmvnc:ubuntujammy-version-d4c49b8

Provide the output of this command.

Xvnc -version

Xvnc KasmVNC 1.3.3 - built Jan  4 2025 19:02:16
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12101004

To Reproduce
Steps to reproduce the behavior (for non-installation issues):

  1. docker run --rm -it -p 3000:3000 lsiobase/kasmvnc:ubuntujammy-version-d4c49b82
  2. Go to localhost:3000
  3. xterm: sudo apt-get update && sudo apt-get install minetest && minetest
  4. Create new world
  5. Start it
  6. Move the mouse

Expected behavior
Mouse moves normally - you can play minetest

Browser
If this is a problem with the KasmVNC client, provide details about the browser you are accessing KasmVNC from.

  • Device: Laptop
  • OS: Windows 11 -> VirtualBox -> Ubuntu 22.04
  • Browser Firefox
  • Version 134.0 (64-bit)

Note: Also multiple Firefox Versions and Microsoft Edge - behaves exactly the same there

@hochbit
Copy link
Author

hochbit commented Jan 15, 2025

Same mouse issue in your minetest image (build today):
docker run --rm -it --shm-size=512m -p 6901:6901 -p 3000:3000 -e VNC_PW=password kasmweb/minetest:1.16.0

With or without Game Cursor Mode ... the player view goes round and round ...

Edit: tried also the oldest image 1.12 also the same problem. Does this work when using the kasm platform? If yes whats different?

@Myzomi
Copy link

Myzomi commented Jan 24, 2025

Similar Issue #276

@hochbit
Copy link
Author

hochbit commented Jan 31, 2025

Yes, thats exactly the same problem - rotating on the spot. I tried to run Minetest (btw now renamed to Luanti) in connection with a simple test installation of KasmWorkspaces. There Minetest works flawlessly in the "Pointer Lock Mode" (Mouse pointer grabbed by the Browser). Would be nice to have this Workspace-"fix" in KasmVNC only too. 🥺

@hochbit
Copy link
Author

hochbit commented Feb 1, 2025

@Myzomi
Huh funny ... my relative mode mouse pointer hack in #311 and adding the following &enable_hidpi=true to where you are forwarded to so its like:
<kasmvncurl>:<kasmvncport>/vnc/index.html?autoconnect=1&resize=remote&virtual_keyboard_visible=true&clipboard_up=true&clipboard_down=true&enable_hidpi=true&clipboard_seamless=true&show_control_bar=true

Enabled minetest being playable as well.
Tested on Chrome, it did not work without my hack, but why? Unreal Engine Editor does without (except for the pointer stuck in the middle)


Update: Found out why: enable_hidpi enables the pointer updates back from the XVnc server and in my hack I changed that function already for updating the mouse pointer ... seems I am good so far🥳

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

2 participants