You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would return the cursor position x,y relative to the game's view. Then we can get/set cursor position between frames while calculating dx/dy ourselves.
The text was updated successfully, but these errors were encountered:
defos.set_cursor_pos(x, y) -- In screen coordinates
defos.move_cursor_to(x, y) -- In game view coordinates
The current set functions may need to be renamed for clarity. So we would need two get functions too one for absolute screen coords one for relative view coords.
Should we have cursor get/sets which use the view positions and mimic action.screen_x action.screen_y like in picture related or let user handle that in their scripts?
defos.set_action_pos(x,y)
local action = {defos.get_action_pos()}
Would return the cursor position x,y relative to the game's view. Then we can get/set cursor position between frames while calculating dx/dy ourselves.
The text was updated successfully, but these errors were encountered: