Skip to content

Instantly share code, notes, and snippets.

@andrsd
Created April 15, 2016 22:38
Show Gist options
  • Select an option

  • Save andrsd/ec7df1900b11f0a0c32e29858bf248bc to your computer and use it in GitHub Desktop.

Select an option

Save andrsd/ec7df1900b11f0a0c32e29858bf248bc to your computer and use it in GitHub Desktop.

Revisions

  1. andrsd created this gist Apr 15, 2016.
    9 changes: 9 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    Using Apple Remote (silver) with Kodi
    =====================================

    Having Kodi installed on Mac mini and trying to use Apple Remote?

    You do not need `lircd`, the remote behaves like a keyboard and sends `VolumeUp`, `VolumeDown`, `Back`, `Forward`, `Enter`, `Menu` and `PlayPause` when a buton is pressed. Thus, we need to change the key mapping if we want the behavior of moving left, right, up, down and back.

    1. Place the file `apple.remote.xml` (below) in `KODI_DATA_DIR/userdata/keymaps`.
    2. Restart Kodi.
    14 changes: 14 additions & 0 deletions remote.apple.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    <!--
    Apple Remote
    -->
    <keymap>
    <global>
    <keyboard>
    <volume_up>Up</volume_up>
    <volume_down>Down</volume_down>
    <browser_back>Left</browser_back>
    <browser_forward>Right</browser_forward>
    <key id="0xf200">Back</key>
    </keyboard>
    </global>
    </keymap>