Add ability to synthesize or pass-through default remote behavior

Originator:starkos
Number:rdar://11643059 Date Originated:11-Jun-2012
Status:Open Resolved:
Product:Mac OS X Product Version:10.7.4
Classification:UI/Usability Reproducible:
 
Summary:
I have an app that provides personalized radio stations. I allow the user to control the music with the Apple IR remote. Pressing and holding the up (+) and down (-) buttons on the remote rates the song or down, respectively. 

I would like tapping the up (+) and down (-) buttons to provide the default behavior of raising and lowering the system volume, including displaying the on-screen bezel (see attached screenshot). Outside the sandbox, I achieved this by posting an NX_KEYTYPE_SOUND_UP or NX_KEYTYPE_SOUND_DOWN via IOHIDPostEvent . But this is no longer inside the application sandbox.

As a result, I now need to implement a common function (changing the system volume) in a custom, non-standard way.

There are a few different ways that this and similar system functions could be made available for developers:

1) Provide more fine-grained registrations for HID callbacks, so that an app can register only for taps, or only for press-and-hold events.

2) Provide a way to pass-through HID events that an app chooses not to handle.

3) Provide a way to synthesize system events that have a user-visible response, such as the volume buttons on the keyboard and remote, eject button, brightness controls, etc.

4) Provide a way to synthesize the user-visible responses for those actions (like the volume bezel, attached).

Steps to Reproduce:
n/a

Expected Results:
n/a

Actual Results:
n/a

Regression:
n/a

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!