-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[js] Another pass at the new actions API for #4564
The previous iteration heavily favored sequences where multiple devices acted in each tick. This also made it too difficult for "simple" sequences like "press SHIFT, move the mouse (0, 30), press LEFT, release LEFT, etc." This new version goes back to favoring simple, synchronous sequences, but still allows configuring async sequences. The new input.Actions class API is largely compatible with actions.LegacyActionSequence, however, the mouse methods have been renamed to force a breakage since there is a change in parameters. The new API still supports translating mouse+keyboard sequences to the legacy protocol, but users have to explicitly request this when the sequence is first created (translation is opt-in because it's not 100%; known issues are all covered in the input.Actions class doc)
- Loading branch information
Showing
13 changed files
with
2,462 additions
and
710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.