title: Detecting CGAssociateMouseAndMouseCursorPosition
body: <p>We're making a user-space device driver for OS X that moves the cursor using Quartz Events, and we ran into a problem when games — especially ones that run in a windowed mode — can't properly capture the mouse pointer <em>(= contain/keep it within the boundaries of their windows)</em>. For example, it would go outside the game window and click on the desktop or nearby inactive applications.</p>
  
  <p>We could fix this if only we could detect when an active application calls CGAssociateMouseAndMouseCursorPosition.</p>
  
  <p>How would you do this? Any ideas are appreciated.</p>