pynput icon indicating copy to clipboard operation
pynput copied to clipboard

Support `injected` with types

Open abrichr opened this issue 1 year ago • 1 comments

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 avatar Apr 23 '23 00:04 abrichr

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

abrichr avatar Feb 29 '24 10:02 abrichr