2012-01-17, 06:13
I wanted to add some additional functionality to my Harmony remote and I thought I could maybe do this by learning a second remote to my ATV2 then mapping those buttons to specific functions via the Joystick.AppleRemote.xml file. Anyways after a bit of research I've finally figured out which Button IDs correspond to the correct learned remote function. Note: The button IDs are not in sequential order to the order that the ATV2 learns the functions. The comments denote the order in which the specific function is learned, there are 9 additional functions and they have separate IR codes from the main remote (The function names are from the ATV2 itself, they have nothing to do with XBMC per say -- I consider them 9 additional IR codes that can be used).
I did this by grabbing a spare remote and having the ATV2 learn the remote codes 1-9 then played around with the xml file until I narrowed down which button IDs were actually being used.
Code:
<button id=13></button> <!-- 9. Skip Forward -->
<button id=14></button> <!-- 8. Skip Back -->
<button id=15></button> <!-- 2. Pause -->
<button id=16></button> <!-- 1. Play -->
<button id=17></button> <!-- 3. Stop -->
<button id=18></button> <!-- 5. Fast Forward -->
<button id=19></button> <!-- 4. Rewind -->
<button id=20></button> <!-- 6. Previous Chapter -->
<button id=21></button> <!-- 7. Next Chapter -->
I did this by grabbing a spare remote and having the ATV2 learn the remote codes 1-9 then played around with the xml file until I narrowed down which button IDs were actually being used.