Reputation: 4003
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?
Upvotes: 2
Views: 447
Reputation: 881863
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.
Upvotes: 3