Skip navigation.
 
mlRe: CGevent and cocoa compatibility
FROM : Ben Lachman
DATE : Fri May 02 19:03:28 2008

Yup, this is true as far as I can tell. I've got the event tap 
installed, the issue is that I'm not able to pull any useful data out 
of NX_SYSDEFINED typed events.  Any thoughts on that?

->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email: <email_removed>
twitter: @benlachman
mobile: 740.590.0009



On May 2, 2008, at 4:34 AM, John Clayton wrote:

> Probably means you'll need to use the event taps API and swallow 
> the event - which is relatively simple to achieve as long as you 
> can install an event tap that isnt a listener only.  I presume 
> since you're already talked about CGEvent structures, that this is 
> indeed what you are doing - correct me if I'm wrong.
>
> Installing an event tap that modifies the event chain won't require 
> special privs (from memory), so long as you don't install it at the 
> window server level.
>
> Does this send you in the right direction?
>
> --
> John Clayton
> http://www.coderage-software.com/
>
>
> On 2/05/2008, at 8:32 AM, Ben Lachman wrote:
>

>> Does anyone know how to get the keycode out of a NX_SYSDEFINED 
>> CGEvent?  If so, is that keycode the same thing you'd get out of 
>> say (([event data1] & 0xFFFF0000) >> 16)? I'm trying to support 
>> the media keys on the Apple aluminum keyboards without having 
>> iTunes also get the events.
>>

Related mailsAuthorDate
mlCGevent and cocoa compatibility Ben Lachman May 2, 08:32
mlRe: CGevent and cocoa compatibility John Clayton May 2, 10:34
mlRe: CGevent and cocoa compatibility Bill Cheeseman May 2, 12:15
mlRe: CGevent and cocoa compatibility Ben Lachman May 2, 19:03