开发者

Hooking [NSEvent mouseLocation] at the system level?

开发者 https://www.devze.com 2023-03-02 15:31 出处:网络
So I\'d like to be able to hook [NSEvent mouseLocation] at the system level, and basically have it return what I\'d like.

So I'd like to be able to hook [NSEvent mouseLocation] at the system level, and basically have it return what I'd like.

This is due to being unable to send mouse events to games, 开发者_开发技巧since they fire of [NSEvent mouseLocation] to get the location of the mouse pointer.

Anyone have any pointers on where I could poke around?


Use even taps, this way you can modify any event in the system before it reaches the application.

This requires "access for assistive devices" to be enabled and this requires the carbon framework.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号