Hello I currently work on my graduation game project, the game has a drawing system usable with a gamepad, and i recently added the common UI plugin in order to have a better control of the UI using the gamepad
At first, when I pressed any button on my controller the cursor disappeared and… to draw I pressed the right trigger and moved the cursor with the left stick, but when I stop moving the cursor with it it automatically returns at the center of the screen.
Does anyone know how to deactivate the cursor recentering and how to enable a custom cursor sprite using the gamepad ?
I gues, by setting its position ti the current value of a Direction?
If so, scrap that…
Create a new Vector2 Variable called CursorPosition and set the cursor position to this.
And with the Direction input, add/sub a little amount to the corresponding XY of the Vector2 (Get Variable > add to value > set variable > set cursor pos to variable)
That way, the Vectir2 stays if you stop moving and you can manually recenter it by setting the Vec2 values.
One thing I’d really like is to keep working on this awesome project! I think it could make really good use of the Switch 2 mouse feature. Unfortunately, I’m not experienced enough to handle everything on my own.