Hey folks,
Is there a script call or similar which can set the mouse position to a screen XY coordinate? Maybe even if not the "real" mouse, a way to make the game think the mouse is at a coordinate? I know there are ways to do mouse clicks at locations, so I am hoping I can simulate the position or movement as well somehow.
The reason is this:
I am using this plugin to create placeable objects. My game is fully controller-compatible, so I am avoiding anything which requires mouse use to function.
While the plugin does support using directional keys to move the object around the map when choosing where to place it, the starting position is always at the current mouse position, which in most cases for me is at the edge of the screen or in a corner, making the item basically invisible until you spam some arrow keys to figure out where it is on the screen, or move the mouse around.
For this reason, I'd like the game to "move" the mouse to the player's location on screen when I choose to place an item, so they can actually see where it is and not have to spam the directional keys 20 times just to get the item over to where they want to place it.
Thanks!
Is there a script call or similar which can set the mouse position to a screen XY coordinate? Maybe even if not the "real" mouse, a way to make the game think the mouse is at a coordinate? I know there are ways to do mouse clicks at locations, so I am hoping I can simulate the position or movement as well somehow.
The reason is this:
I am using this plugin to create placeable objects. My game is fully controller-compatible, so I am avoiding anything which requires mouse use to function.
While the plugin does support using directional keys to move the object around the map when choosing where to place it, the starting position is always at the current mouse position, which in most cases for me is at the edge of the screen or in a corner, making the item basically invisible until you spam some arrow keys to figure out where it is on the screen, or move the mouse around.
For this reason, I'd like the game to "move" the mouse to the player's location on screen when I choose to place an item, so they can actually see where it is and not have to spam the directional keys 20 times just to get the item over to where they want to place it.
Thanks!