问题
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 intercepts 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.
回答1:
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.
来源:https://stackoverflow.com/questions/4976219/programming-for-the-apple-infared-remote-controls