How do I get started with programming for the Apple infared remote control?
To start with, I only intend to support one control, and one type of receiver, that on the current unibody MacBooks.
What I mean by programming, is, how do I get started with writing an OSX, preferably Cocoa if there are APIs, app which int开发者_StackOverflow中文版ercepts commands from the control, and then sends commands to the OS.
For example, as a start, I'd like to be able to simply pick up a key press from the remote control, and then emit a keyboard command to the OS.
Like, say I've got this listener app running, if you press the menu button, and you're in the textedit app, it prints out the letter "a" for example.
Some searching around has revealed:
- https://github.com/martinkahr/apple_remote_control
- http://www.iospirit.com/developers/
Other resources:
- http://www.cocoadev.com/index.pl?UsingTheAppleRemoteControl
- a video presentation and the slides
If I find more I'll edit my answer.
精彩评论