core-graphics-rs
core-graphics-rs copied to clipboard
CGEventTapCreate not implemented
Anyone against it?
Nope. What do you want it for?
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...
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 https://github.com/gimli-rs/object/issues/268 for some of the info.