3

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,

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks a lot for your answer. Which method is the best in term of performance and/or compatibility? Thanks
@AP: If you have previous experience with Carbon Events, that approach might be easier, but otherwise I'd say go with event taps, a newer API.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.