MOUSE_MODE_CONFINED not confining mouse on MacOS

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sunderw

Hi,

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 ?

:bust_in_silhouette: Reply From: bruvzg

Godot version 3.2.2

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

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

Sunderw | 2021-03-10 17:24