Hello,
I'm trying to make the software cursor snap to the location of an inventory item when selected, so that when the item is dragged around it doesn't start from a random positon on the screen when using Keyboard and controller input method with direct control over menus. Is it possible?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If you're using the simulated cursor, you can use the SetSimulatedCursorPosition function to snap it to a particular position:
To call this at the moment an item is selected, hook into the OnInventorySelect event:
You'll need to rename the menu/element names in the code to match your own Inventory menu.
This is exactly what I was looking for! Thanks a lot!