Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

CGEventTapCreate not implemented #111

Open
AsafFisher opened this issue Jan 9, 2021 · 4 comments
Open

CGEventTapCreate not implemented #111

AsafFisher opened this issue Jan 9, 2021 · 4 comments

Comments

@AsafFisher
Copy link

No description provided.

@AsafFisher
Copy link
Author

AsafFisher commented Jan 14, 2021

Anyone against it?

@jrmuizel
Copy link
Contributor

Nope. What do you want it for?

@AsafFisher
Copy link
Author

AsafFisher commented Jan 14, 2021

I want to make a cross platform mouse + keyboard sharing... I saw a rust project that's called winit and so I decided to implement it there... the winapi side is already taken care of (CreateHookEx) so I just need to hook the Mac OS and Unix's mouse/keyboard event system (:
It will also be useful for all these malicious people who want to make a cool rust ransomeware 🤧

Btw does anyone knows where the shared object containing this symbol located at?

Why am I asking?
I got a problem right now where CGCreateEventTap returns a null... so I tried to debug it using lldb and I found that the symbol it's located in the skylight module or something like that... I am familiar with Linux and macos is Unix based so I guess there is a shared object that contains this symbol somewhere... does anyone know where this dynamic/shared object located at? I want to reverse it a bit to understand what I am doing wrong...

@jrmuizel
Copy link
Contributor

On 10.15 SkyLight is here: /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight. If you're on Big Sur (11.0) the files aren't stored on disk in the same way anymore. See gimli-rs/object#268 for some of the info.

bors-servo added a commit to servo/core-foundation-rs that referenced this issue May 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants