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,

asked Jun 12, 2010 at 9:14

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).

answered Jun 12, 2010 at 16:37
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.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.