Programming for the Apple infared remote controls

2019-05-05 19:40发布

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条回答
登录 后发表回答