Skip to content
This repository was archived by the owner on Jul 1, 2022. It is now read-only.

Enhancement: Added support for async mouse moves #955

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roozhou
Copy link
Contributor

@roozhou roozhou commented Jun 28, 2022

You can do mouse move in background with is_async=True in mouse.move.

mouse.sync waits until the mouse reaches target.
mouse.stop stops the background move immediately or does nothing if the mouse is not moving.
A new mouse.move stops mouse move in background first and goes to the new target

May cause issues if multiple threads are calling mouse.move (e.g. chicken).

@aliig aliig requested a review from aeon0 June 30, 2022 15:26
@D2RLegit D2RLegit added the ready for review For PRs label Jun 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants