Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting CGAssociateMouseAndMouseCursorPosition

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 (= contain/keep it within the boundaries of their windows). For example, it would go outside the game window and click on the desktop or nearby inactive applications.

We could fix this if only we could detect when an active application calls CGAssociateMouseAndMouseCursorPosition.

How would you do this? Any ideas are appreciated.

like image 306
Dae Avatar asked Jan 11 '13 23:01

Dae


1 Answers

I dont know if this can help you

There is an option called Focus Follows Mouse

Focus Follows Mouse - The Mouse pointer will grab automatically change focus to a new window inisde this one app if you mouse over it, instead of having to click a window to get focus, then clicking to do something.

http://wineskin.urgesoftware.com/tiki-index.php?page=Manual+4.6+Advanced+-+Options

like image 61
Mauricio Gracia Gutierrez Avatar answered Nov 02 '22 10:11

Mauricio Gracia Gutierrez