AP.
AP.

Reputation: 5323

detect mouse events in mac os X at system level

I would like to keep track of all mouse events at system level (not only in my application). I've quickly googled this but found no real interesting pointer.

Do you know how to achieve this?

Thanks in adavance for your help :)

Regards,

Upvotes: 3

Views: 1070

Answers (1)

JWWalker
JWWalker

Reputation: 22707

I know of 2 ways: installing Carbon Event handlers on the event monitor target (GetEventMonitorTarget) or using a Quartz event tap (CGEventTapCreate).

Upvotes: 2

Related Questions