Apple Remote IR Reciever RPI

Hi all,

I’m trying to use an Apple remote (A1294) via an IR receiver to control Kodi on my Raspberry Pi.

I have followed many tutorials and seem to have got the RPI to pick up the IR signal from the Apple remote. However, when I launch Kodi on the RPI the remote doesn’t seem to control the interface.

Following the tutorial (http://kodi.wiki/view/HOW-TO:Set_up_LIRC) I have added Lircmap.xml below to $home$/.kodi/userdata/

Code:
<lircmap>
        <remote device="Apple Remote">
                <up>KEY_UP</up>
                <down>KEY_DOWN</down>
                <left>KEY_LEFT</left>
                <right>KEY_RIGHT</right>
                <play>KEY_PLAY</play>
                <menu>KEY_MENU</menu>
                <select>KEY_OK</select>
        </remote>
</lircmap>

Any help will be greatly appreciated…