- Home /
Move mouse cursor using code
Hi all. I'm posting this incase I can't find an answer later on. Probably a bit of a silly question as I doubt it's possible but is there a way to move the mouse cursor using code (preferably in c#). Here's a quick video to show you the scenerio... https://www.youtube.com/watch?v=x28Ai45puvU
The camera will rotate as the player moves and the compass arrows are needed to be clicked for the player to move. The arrows will rotate with the camera, so it's easier for the player to know which way is which.
However, because the arrows are moving, it means the player needs to manually keep moving the mouse so it's over the direction they want to go in (hopefully I'm explaining this so you understand :D).
So to sum it up what I want is for the mouse to adjust with the arrows. If the player is using the green arrow for example, the mouse will follow the green arrow while it is changing position.
Hope y'all can help me out here, thanks!
Answer by Magso · Jan 12, 2019 at 04:30 PM
https://answers.unity.com/questions/564664/how-i-can-move-mouse-cursor-without-mouse-but-with.html it's more complicated than you might think :/
Oh goodness... Well I'll have a look into that and hopefully I can get it working. Thanks!
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to determine string location inside a Text 2 Answers
How to get an object to follow the Slider knob? 0 Answers
C# UI Text not updating 1 Answer