• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CGEventTap code fails on Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGEventTap code fails on Snow Leopard


  • Subject: CGEventTap code fails on Snow Leopard
  • From: Rick Mann <email@hidden>
  • Date: Mon, 31 Aug 2009 00:25:55 -0700

Hi. A while back I wrote a little program to remap the right-side option key to be enter (on Al MacBook Pros). It works great, but since installing snow leopard, it runs for a while, then gets an unexpected event (type -2) and then never gets another event.

It's pretty simple code. Only if a key down/key up event comes in does it do anything; otherwise it just returns the passed-in event.

It's not clear what causes the type -2 event to come in (really, it's type 0xFFFFFFFE). However, it seems that it always happens in response to pressing the remaped option key, and in that instance what I see is a key down on the LEFT option key, and no key up. Just the weird event.

Any ideas?

--
Rick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Get error message about registered observers when Object receives dealloc message
  • Next by Date: Re: _NSAutoreleaseNoPool missing in Snow Leopard
  • Previous by thread: Re: What sound plays after an Installer runs?
  • Next by thread: system(root) locale
  • Index(es):
    • Date
    • Thread