BlankSourceCode / obs-zoom-to-mouse

An OBS lua script to zoom a display-capture source to focus on the mouse
178 stars 15 forks source link

osx mouse position #14

Open v0l opened 7 months ago

v0l commented 7 months ago

Adds OSX support with C helper code.

Tried hard to get OBJ-C working directly from FFI but the object returned by objc_msgSend was not what i expected, maybe somebody else can figure that out.

v0l commented 7 months ago

Using it live: https://zap.stream/naddr1qqjrjv33v33xvde595mxvvmz956xxdp395urqcmr95cxvvrpxvcrwdrrxycnwq3qeaz6dwsnvwkha5sn5puwwyxjgy26uusundrm684lg3vw4ma5c2jsxpqqqpmxwccqtxg

related #1

BlankSourceCode commented 7 months ago

@v0l Thanks for this!

I used it to try adding mac support with only FFI (so we don't need to build and ship a separate binary) in #16

Unfortunately, I only have access to a really old Mac (cannot upgrade past Catalina), so I don't know if the code I added will work on newer versions of the Mac OS.

If you have a chance to test out the script and see if it needs modifying for the version of mac you are using, that would be really helpful.

Thanks again!

mcnaveen commented 7 months ago

@BlankSourceCode Check https://github.com/BlankSourceCode/obs-zoom-to-mouse/pull/16#issuecomment-1829569657