Go Here:
Inside_the_iPod_Remote
or
Here
or
Here
Yay, I wrote my own code for this! ;)