|Topic was automatically imported from the old Question2Answer platform.
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
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 ?