Hi,
I would like to change the shape of the mouse cursor depending on the state of my game. In particular, I would like a 'wait' cursor during the ennemis turn, and when this turn is finished the cursor should change immediately to another icon.
So I tried using the field "Control.MouseDefaultCursorShape" of my viewport container.
Problem: when I change the cursor shape with this field, it is not visible immediately. It is only visible after the player moves the mouse, which defeats the purpose of having a "wait for your turn" cursor.
Is there a way to get this effect immediately ?
PS:
- running on windows 10, Godot 3.3
- I tried to generate a fake mouse event with a deferred call to "Input.ParseInputEvent" after changing the cursor. The behavior is a bit weird: the mouse is then displayed with the default cursor (the arrow), instead of using the cursor I specified. Once again the correct cursor is displayed as soon as I really move the mouse.