Skip to content

Support injected with types#550

Open
abrichr wants to merge 15 commits intomoses-palmer:masterfrom
OpenAdaptAI:master
Open

Support injected with types#550
abrichr wants to merge 15 commits intomoses-palmer:masterfrom
OpenAdaptAI:master

Conversation

@abrichr
Copy link
Copy Markdown

@abrichr abrichr commented Apr 23, 2023

This PR is based off the implementation in https://github.com/moses-palmer/pynput/tree/feature-injected, but contains modifications to support callbacks with type hints, and works on the latest version of MacOS (directly importing CoreFoundation and Quartz produced errors on my machine, and importing their submodules directly was necessary to work around it).

Note that it is untested on Linux, and likely does not work considering the comment here. However, I am submitted this PR in case someone else finds it helpful.

If there are any suggestions for Linux I would be happy to include them here as well!

@abrichr abrichr changed the title Supported injected with types Support injected with types Jan 17, 2024
@abrichr
Copy link
Copy Markdown
Author

abrichr commented Feb 29, 2024

The pynput --> oa_pynput changes were required to deploy via pip as a dependency in https://github.com/OpenAdaptAI/OpenAdapt but are not necessary to merge upstream.

TODO: modify PR to merge from feat/inject branch with unnecessary changes reverted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants