0 votes


I made a breakout-type game. The paddle should simply follow the mouse.
The way that seemed the easiest was to use the confined mouse mode and set the cursor to a transparent image.

From the doc : MOUSE_MODE_CONFINED --- Makes the mouse cursor visible but confines it to the game window.

Since I'm not a native english speaker, maybe my understanding of the word "confined" isn't correct.
What I expect from this is to block the mouse from leaving the game window. For example, I shouldn't be able to open the dock on my mac if I move on the bottom of the screen.

For me, there is actually no difference between MOUSE_MODE_CONFINED and MOUSE_MODE_VISIBLE.
I double checked to be sure that the code is actually called and the mouse behaviour is different if I replace confined by captured or hidden.

Is my understanding wrong or is this a bug ?

Godot version 3.2.2
in Engine by (15 points)

1 Answer

0 votes
Best answer

Godot version 3.2.2

It's implemented in 3.2.3+ (#40054).

by (358 points)
selected by

Ah crap I didn't pay attention to the version it was introduced in... It does work well with the correct version, thanks ! :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.