开发者

detect mouse events in mac os X at system level

开发者 https://www.devze.com 2023-01-03 01:01 出处:网络
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.

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.

开发者_如何学PythonDo you know how to achieve this?

Thanks in adavance for your help :)

Regards,


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

0

精彩评论

暂无评论...
验证码 换一张
取 消