Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LowLevel Mouse and Keyboard Events




On Nov 26, 2007, at 9:48 AM, Hao Jiang wrote:

Guys,

I am experiencing difficulties in coding Carbon event handlers.
My goal is to intercept a mouse/keyboard event and prevent it from happening across all processes.
Yet, the GetEventMonitorTarget() just dupicates the event, the original one is also sent to the process.
It is sort of like Windows' LowLevel Mouse Hook, but I just could not find a proper method to do that?
Any ideas?

You could use the CoreGraphics event tap API to do this. Look at CoreGraphics/CGEvent.h.


-eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >LowLevel Mouse and Keyboard Events (From: "Hao Jiang" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.