• 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
Generating a low level key event with pre-Leopard HID APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Generating a low level key event with pre-Leopard HID APIs


  • Subject: Generating a low level key event with pre-Leopard HID APIs
  • From: Lou Zell <email@hidden>
  • Date: Mon, 3 Jan 2011 01:20:16 -0800

Hi all,

First time poster here; rest assured, I have searched the archives
extensively before coming to this.  The short of it is I am trying to
generate key events at a level that MAME OS X will see.  MAME uses the
pre-Leopard HID APIs to:

1. Find your keyboards
2. Find all keys on your keyboards
3. Iterate over the keys and add them to a queue (interfaced by
IOHIDQueueInterface)
4. Set a callback function that is called when the event queue transitions
to non-empty

I set up an xcode project, ListenForKeys, to illustrate the process here:
https://github.com/lzell/ListenForKeysOSX/blob/master/ListenForKeys.m

Because of this setup, generating key events in any of the normal ways
doesn't make it to MAME.  I have been searching for a way to specify an
IOHIDElementCookie with an event, hoping that this would cause the event to
find its way into the event queue.  But I have had no luck coming up with
such a function.

I set up a second project to show the many different ways I am generating
key events.  None of these methods cause the event to make it into the event
queue setup in ListenForKeys:
https://github.com/lzell/GenerateKeyPressOSX/blob/master/GenerateKeyPress.m

So, how would I go about generating an event that _would_ make it into the
event queue setup in ListenForKeys, and hence, MAME OS X?  I have been
working on this for quite some time; any help would really be appreciated.

Thank you,
Lou Zell
_______________________________________________

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: Missing connection
  • Next by Date: Recommendations IMAP/POP client library
  • Previous by thread: Re: Missing connection
  • Next by thread: Recommendations IMAP/POP client library
  • Index(es):
    • Date
    • Thread