Programming for the Apple infared remote controls

梦想与她 提交于 2020-01-23 08:16:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!