Hooking [NSEvent mouseLocation] at the system level?
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.
精彩评论