Here’s a FaceSpan plugin that lets your FaceSpan projects respond to commands from the Apple Remote that ships with many of the current Mac models:
Installing:
Follow these steps to install the Apple Remote plugin:
- expand the AppleRemote.zip archive
- move the resulting Apple Remote.fsplugin to the ~/Library/Application Support/FaceSpan 5/Plug-ins folder
- Quit and relaunch FaceSpan
To use Apple Remote:
The example project included with the plugin illustrates how to respond to events from the Apple Remote. In summary, you must do the following to use the Apple Remote plugin:
- Drag an instance of the Apple Remote object from the Library inspector to your project (Other group)
- Somewhere in your code, you must tell the Apple Remote object to ‘start’. This causes the object to start listening to the Apple Remote (and prevents other applications — Front Row — from receiving Apple Remote events).
- Implement a ‘did operate Apple remote’ event handler or listen for “AppleRemote_Operated” broadcasts.
The source code for this plugin is included in the FaceSpan 5.0d40 SDK.