We are creating a user space device driver for OS X that moves the cursor using Quartz Events, and we run into a problem when games, especially those that work in windowed mode, cannot correctly capture the mouse pointer (= contain / keep it within its windows). For example, he goes beyond the boundaries of the game window and clicks on inactive applications on the desktop or nearby.
We could fix this if we could only detect when the active application calls CGAssociateMouseAndMouseCursorPosition.
How do you do that? Any ideas are welcome.
core-graphics quartz-graphics mouseevent macos
Dae Jan 11 '13 at 23:40 2013-01-11 23:40
source share