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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com