godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.98k stars 21.16k forks source link

Mouse Stutter when Dragging if mouse mode is MOUSE_MODE_CONFINED #82635

Open FonkinS opened 1 year ago

FonkinS commented 1 year ago

Godot version

4.1.1 stable

System information

Godot v4.1.1.stable - macOS 13.0.1 - Vulkan (Compatibility) - Intel(R) Iris(TM) Plus Graphics OpenGL Engine - Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz (8 Threads)

Issue description

Setting the Input.mouse_mode to Input.MOUSE_MODE_CONFINED will, holding down the Left Mouse Button and dragging, make the mouse stutter.

https://youtu.be/8jQ8h0L1JU0

Steps to reproduce

Make a new Scene Add a Script to that Scene In that Script, in _ready() set the Input.mouse_mode to Input.MOUSE_MODE_CONFINED Play the Scene Hold down Left Click Move the Mouse around

Minimal reproduction project

N/A (See above, very trivial)

Calinou commented 1 year ago

Are you using a built-in trackpad or external mouse? Trackpads may have palm click prevention which can impede playing games.

I'd recommend checking whether this occurs with an external mouse if you're using a trackpad.

FonkinS commented 1 year ago

@Calinou Trackpad, I sadly don’t have any Bluetooth or USB mouses

FonkinS commented 1 year ago

NVM, borrowed a friends, I can now verify that it does not work on an Apple Magic Mouse (Bluetooth) either

Miredly commented 4 months ago

I'm also experiencing this issue in 4.2.1 stable in MacOS 14.5 with the trackpad.

Confirmed it works fine with a regular mouse.

NangiDev commented 1 month ago

This is not a case for me in 4.3 Specs:

Godot Engine v4.3.stable.official.77dcf97d8 - https://godotengine.org
Vulkan 1.3.274 - Forward+ - Using Device #0: Intel - Intel(R) HD Graphics 620 (KBL GT2)

I have other issues, but it does not stutter when holding left mouse button and dragging whilie mode is MOUSE_MODE_CONFINED.

I have a linux laptop with trackpad, but tried with regular mouse as well

adamscott commented 2 days ago

Cannot reproduce on my MacBook Pro on macOS Sequoia 15.0.1

Godot v4.4.dev (17fca1a62) - macOS 15.0.1 - Multi-window, 1 monitor - Metal (Forward+) - integrated Apple M3 Max (Apple9) - Apple M3 Max (16 threads)