tags:

views:

19

answers:

1

How could I read input from a remote control device on a mac (iMac, Mac Mini, etc.) and handle actions based on differently pressed buttons in python?

I would like to map the button-press events to my custom app instead of "Front Row". What actions should I take to do that and what python libraries to use to handle the events?

+2  A: 

The Remote Control Wrapper 2 library is an Objective C class to handle interaction with Apple Remote Control (and, I believe, also some other such "remote-control-like" devices). To use some Objective C code from Python, see pyobjc.

Alex Martelli