Re: Play/Pause, rew/ff keys ...
Re: Play/Pause, rew/ff keys ...
- Subject: Re: Play/Pause, rew/ff keys ...
- From: Bill Monk <email@hidden>
- Date: Tue, 11 Nov 2008 11:01:07 -0600
Does anyone have experience intercepting the play/pause and rew/ff
(seek back / seek forward) keys on some keyboards? Particularly, the
MacBook / MacBook Pro keyboards?
This worked for me:
http://www.rogueamoeba.com/utm/archives/MediaKeys.m
Basically, subclass NSApplication, override -sendEvent:, and look for
the special keys you want, as defined in
<IOKit/hidsystem/ev_keymap.h>. They include play/pause/stop, volume
up/down, screen brightness up/dow, etc.
_______________________________________________
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