How can I control the mouse cursor by the analog of the control?

I’m creating a game and I need to move the mouse cursor with the analog stick
does anyone have a simplified idea of how it would be possible to do this?

You can get the cursor position using py and mouse sensor, we can set the mouse location using bge.render module.

I already tried it didn’t work