Mailing Lists: Apple Mailing Lists

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

AppleIRController raw events



Hello,

I have an application that uses the Apple remote that is not working
optimally in my situation because of the filtering of events Apple
seems to do before passing the events along. I would prefer to get the
raw button press/release events with no filtering but haven't been
able to find out how to do it.

Here are the interface values I am using:

page=1 cookie=14 usage=86 kHIDUsage_GD_SystemAppMenu
page=1 cookie=15 usage=89 kHIDUsage_GD_SystemMenu
page=1 cookie=16 usage=8a kHIDUsage_GD_SystemMenuRight
page=1 cookie=17 usage=8b kHIDUsage_GD_SystemMenuLeft
page=1 cookie=1d usage=8c kHIDUsage_GD_SystemMenuUp
page=1 cookie=1e usage=8d kHIDUsage_GD_SystemMenuDown

I am using IOHIDDeviceInterface122 and IOHIDQueueInterface and some
related calls to obtain the events. I have attempted to use "page 0xc"
of the IR interface but that didn't seem to do anything useful.

As an example of the unwanted filtering: When I press/release
"increase/decrease volume", I get the press/release events as they
physically happened (my desired behavior); when I press
"fast-forward/reverse", I only get a press event upon a physical
release and only if I do it in a certain amount of time (which limits
the usefulness of my application).

In iTunes you can hold down "fast-forward" and it works as expected,
so it is getting more information than I'm able to get so far.

Thanks for any help!


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

This email sent to 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.