Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse: add function to move to and click something #12

Open
NathanLovato opened this issue Jan 4, 2024 · 0 comments
Open

Mouse: add function to move to and click something #12

NathanLovato opened this issue Jan 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@NathanLovato
Copy link
Contributor

Add a simple API to have the mouse move and click on something, with automated direction and placement.

Similar to how we use animated pointers in videos on YouTube, short motion, ease in on target, + click animation at end.

The function signature could be like: mouse_move_and_click(target_position: Vector2, from_distance := 80.0, direction := MouseDirection.AUTO)

Note: the distance should maybe auto-scale with editor scale.

The mouse direction can be calculated from the editor window and distance to bounds.

This could rely on a new extra function mouse_move_to(target_position: Vector2) function + the existing mouse_click().

@NathanLovato NathanLovato added the enhancement New feature or request label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant