mouse remote

This is a remote for your macbook that mimics the headphone remote of your iphone, but it controls itunes and pandora, depending which is running. To use it, you need to include the system classes, so either use the make target run or the following to run it:

javac -g *.java
java -classpath .:/System/Library/Java MouseRemote

Here is the code:


Using it, the screen will dim slightly, so you can see what's going on in the background, and when you are playing either PandoraBoy or ITunes, this responds to the following events:

The reason I did this is because the laptop that has lots of old music (though that's about all) is connected to only to a mouse; and since I'm a lazy fuck, I'd like to do as little to control it, and this appears to be just that.