<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not          -->
<!-- used in the current window's section.  Note that there is only handling                       -->
<!-- for a single action per button at this stage.                                                 -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox       -->
<!-- gamepads.                                                                                     -->

<!-- The format is:                      -->
<!--    <device>                         -->
<!--      <button>action</button>        -->
<!--    </device>                        -->

<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
<!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
<!-- You set it up by adding a <universalremote> block to the window or <global> section:       -->
<!--    <universalremote>             -->
<!--       <obc45>Stop</obc45>         -->
<!--    </universalremote>            -->
<!-- To find out the OBC's of your remote, try enabling the <displayremotecodes> tag in AdvancedSettings.xml -->

<!-- Note that the action can be a built-in function.                 -->
<!--  eg <B>XBMC.ActivateWindow(MyMusic)"</B>                         -->
<!-- would automatically go to My Music on the press of the B button. -->

<!-- Joysticks / Gamepads:                                                                    -->
<!--   See the sample PS3 controller configuration below for the format.                      -->
<!--                                                                                          -->
<!--  Joystick Name:                                                                          -->
<!--   Do 'cat /proc/bus/input/devices' or see your xbmc log file  to find the names of       -->
<!--   detected joysticks. The name used in the configuration should match the detected name. -->
<!--                                                                                          -->
<!--  Button Ids:                                                                             -->
<!--   'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear   -->
<!--   in xbmc.log when they are pressed. Use your log to map custom buttons to actions.      -->
<!--                                                                                          -->
<!--  Axis Ids / Analog Controls                                                              -->
<!--   Coming soon.                                                                           -->

<keymap>
  <global>
    <remote>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
      <play>Play</play>
      <pause>Pause</pause>
      <stop>Stop</stop>
      <forward>FastForward</forward>
      <reverse>Rewind</reverse>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>Select</select>
      <pageplus>PageUp</pageplus>
      <pageminus>PageDown</pageminus>
      <back>ParentDir</back>
      <menu>PreviousMenu</menu>
      <title>ContextMenu</title>
      <info>Info</info>
      <skipplus>SkipNext</skipplus>
      <skipminus>SkipPrevious</skipminus>
      <display>FullScreen</display>
      <start>PreviousMenu</start>
      <record>Screenshot</record>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <power>XBMC.ShutDown()</power>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <mytv>XBMC.ActivateWindow(Home)</mytv>
    </remote>

    <gamepad>
      <A>Select</A>
      <B>ParentDir</B>
      <X>FullScreen</X>
      <Y>Queue</Y>
      <white>ContextMenu</white>
      <black></black>
      <start>XBMC.ActivateWindow(PlayerControls)</start>
      <back>PreviousMenu</back>
      <dpadleft>Left</dpadleft>
      <dpadright>Right</dpadright>
      <dpadup>Up</dpadup>
      <dpaddown>Down</dpaddown>
      <leftthumbbutton>Screenshot</leftthumbbutton>
      <rightthumbbutton>XBMC.ActivateWindow(ShutdownMenu)</rightthumbbutton>
      <leftanalogtrigger>ScrollUp</leftanalogtrigger>
      <rightanalogtrigger>ScrollDown</rightanalogtrigger>
      <rightthumbstickleft>AnalogSeekBack</rightthumbstickleft>
      <rightthumbstickright>AnalogSeekForward</rightthumbstickright>
      <rightthumbstickup>VolumeUp</rightthumbstickup>
      <rightthumbstickdown>VolumeDown</rightthumbstickdown>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="1">Select</button>
      <button id="2">ParentDir</button>
      <button id="3"></button>
      <button id="4">FullScreen</button>
      <button id="5">Queue</button>
      <button id="6">ContextMenu</button>
      <button id="7"></button>
      <button id="8"></button>
      <button id="9">XBMC.ActivateWindow(PlayerControls)</button>
      <button id="10"></button>
      <button id="11">Screenshot</button>
      <button id="12">XBMC.ActivateWindow(ShutdownMenu)</button>
      <button id="13">Up</button>
      <button id="14">Right</button>
      <button id="15">Down</button>
      <button id="16">Left</button>
      <button id="17">PreviousMenu</button>
      <axis id="5" limit="-1">VolumeDown</axis>
      <axis id="5" limit="+1">VolumeUp</axis>
      <axis id="4" limit="-1">AnalogSeekBack</axis>
      <axis id="4" limit="+1">AnalogSeekForward</axis>
      <axis id="3" limit="0">ScrollUp</axis>
      <axis id="6" limit="0">ScrollDown</axis>
    </joystick>

    <joystick name="Sony PLAYSTATION(R)3 Controller">   
      <altname>PS3 Controller</altname>
      <altname>Sony Computer Entertainment Wireless Controller</altname>
      <button id="15">Select</button>                   
      <button id="14">ParentDir</button>                
      <button id="16">FullScreen</button>
      <button id="13">Queue</button>
      <button id="11">PreviousMenu</button>
      <button id="8">Left</button>
      <button id="6">Right</button>
      <button id="5">Up</button>
      <button id="7">Down</button>
      <button id="2">Screenshot</button>
      <button id="3">XBMC.ActivateWindow(ShutdownMenu)</button>
      <button id="4">XBMC.ActivateWindow(PlayerControls)</button>
      <axis id="4" limit="+1">VolumeDown</axis>
      <axis id="4" limit="-1">VolumeUp</axis>
      <axis id="1" limit="+1">AnalogSeekForward</axis>
      <axis id="1" limit="-1">AnalogSeekBack</axis>
      <axis id="13" limit="+1">ScrollUp</axis>
      <axis id="14" limit="+1">ScrollDown</axis>
    </joystick>

    <joystick name="WiiRemote">
      <button id="1">Up</button>
      <button id="2">Down</button>
      <button id="3">Left</button>
      <button id="4">Right</button>
      <button id="5">Select</button>
      <button id="6">PreviousMenu</button>
      <button id="7">VolumeDown</button>
      <button id="8">XBMC.ActivateWindow(Home)</button>
      <button id="9">VolumeUp</button>
      <button id="10">ContextMenu</button>
      <button id="11">XBMC.ActivateWindow(PlayerControls)</button>
    </joystick>

    <joystick name="AppleRemote">
      <!-- plus       --> <button id="1">Up</button>
      <!-- minus      --> <button id="2">Down</button>
      <!-- left       --> <button id="3">Left</button>
      <!-- right      --> <button id="4">Right</button>
      <!-- play/pause --> <button id="5">Select</button>
      <!-- menu       --> <button id="6">PreviousMenu</button>

      <!-- hold play  --> <button id="7">Fullscreen</button>
      <!-- hold menu  --> <button id="8">ContextMenu</button>
      
      <!-- old buttons (ATV <2.2) -->
      <!-- hold left  --> <button id="9">BigStepBack</button>
      <!-- hold right --> <button id="10">BigStepForward</button>
      
      <!-- Learned remote buttons (ATV >2.3) -->
      <!-- Play --> <button id="70">Play</button>
      <!-- Pause --> <button id="71">Pause</button>
      <!-- Stop --> <button id="72">Stop</button>
      <!-- Previous --> <button id="73">SkipPrevious</button>
      <!-- Next --> <button id="74">SkipNext</button>
      <!-- Rewind --> <button id="75">Rewind</button>
      <!-- Forward --> <button id="76">FastForward</button>
      <!-- Return --> <button id="77">OSD</button>
      <!-- Enter --> <button id="78">ShowVideoMenu</button>
    </joystick>

    <keyboard>
      <p>Play</p>
      <q>Queue</q>
      <f>FastForward</f>
      <r>Rewind</r>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <pageup>PageUp</pageup>
      <pagedown>PageDown</pagedown>
      <return>Select</return>
      <enter>Select</enter>
      <backspace>ParentDir</backspace>
      <m>ActivateWindow(PlayerControls)</m>
      <s>ActivateWindow(shutdownmenu)</s>
      <escape>PreviousMenu</escape>
      <i>Info</i>
      <menu>ContextMenu</menu>
      <c>ContextMenu</c>
      <space>Pause</space>
      <x>Stop</x>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <tab>FullScreen</tab>
      <printscreen>Screenshot</printscreen>
      <minus>VolumeDown</minus>
      <plus>VolumeUp</plus>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
      <backslash>ToggleFullScreen</backslash>
      <home>FirstPage</home>
      <end>LastPage</end>
      <key id="65446">ParentDir</key>
      <key id="65459">Play</key>
    </keyboard>
  </global>


  <Home>
    <gamepad>
      <black>XBMC.Skin.ToggleSetting(HomeViewToggle)</black>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="3">XBMC.Skin.ToggleSetting(HomeViewToggle)</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="8">Fullscreen</button>
      <button id="10">XBMC.ActivateWindow(Favourites)</button>
      <button id="11">XBMC.ActivateWindow(ShutdownMenu)</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Fullscreen</button>
    </joystick>

    <remote>
      <menu>XBMC.Skin.ToggleSetting(HomeViewToggle)</menu>
      <info>XBMC.ActivateWindow(SystemInfo)</info>
      <clear>XBMC.ActivateWindow(Weather)</clear>
      <hash>XBMC.ActivateWindow(Settings)</hash>
    </remote>

    <keyboard>
      <i>info</i>
      <end>XBMC.ShutDown()</end>
    </keyboard>
  </Home>
  

  <MyFiles>
    <gamepad>
      <Y>Highlight</Y>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="5">Highlight</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="7">Move</button>
      <button id="9">Copy</button>
      <button id="11">Highlight</button>
    </joystick>

    <remote>
      <zero>Delete</zero>
      <one>Highlight</one>
      <four>Copy</four>
      <seven>Move</seven>
      <clear>Delete</clear>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Highlight</space>
      <delete>Delete</delete>
      <m>Move</m>
      <r>Rename</r>
    </keyboard>
  </MyFiles>
  

  <MyMusicPlaylist>
    <gamepad>
      <Y>Delete</Y>
      <black>Playlist</black> <!-- Close playlist -->
      <back>Playlist</back>   <!-- Close playlist -->
      <B>Playlist</B>         <!-- Close playlist -->
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">Playlist</button>
      <button id="3">Playlist</button>
      <button id="17">Playlist</button>
      <button id="5">Delete</button>
     </joystick>

    <joystick name="WiiRemote">
      <button id="6">Playlist</button>
      <button id="7">MoveItemUp</button>
      <button id="9">MoveItemDown</button>
      <button id="11">Delete</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Playlist</button>
    </joystick>

    <remote>
      <back>Playlist</back> <!-- Close playlist -->
      <clear>Delete</clear>
      <zero>Delete</zero>
      <two>MoveItemUp</two>
      <five>MoveItemDown</five>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Playlist</space> <!-- Close playlist -->
      <delete>Delete</delete>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
      <backspace>Playlist</backspace> <!-- Close playlist -->
    </keyboard>
  </MyMusicPlaylist>

  <MyMusicPlaylistEditor>
    <keyboard>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
      <delete>Delete</delete>
    </keyboard>

    <joystick name="WiiRemote">
      <button id="6">Playlist</button>
      <button id="7">MoveItemUp</button>
      <button id="9">MoveItemDown</button>
      <button id="11">Delete</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="5">ContextMenu</button> <!-- FIXME? -->
      <button id="6">Playlist</button>
    </joystick>

    <gamepad>
      <Y>Queue</Y>
    </gamepad>
    <remote>
      <zero>Queue</zero>
    </remote>
  </MyMusicPlaylistEditor>
  
  <MyMusicFiles>
    <gamepad>
      <Y>Queue</Y>
      <black>Playlist</black>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="3">Playlist</button>
      <button id="5">Queue</button>
     </joystick>

    <joystick name="WiiRemote">
      <button id="6">ParentDir</button>
      <button id="11">Playlist</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">ParentDir</button>
    </joystick>

     <remote>
      <zero>Queue</zero>
      <star>Queue</star>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Playlist</space>
      <q>Queue</q>
    </keyboard>
  </MyMusicFiles>


  <MyMusicLibrary>
    <gamepad>
      <Y>Queue</Y>
      <black>Playlist</black>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="3">Playlist</button>
      <button id="5">Queue</button>
     </joystick>

    <joystick name="WiiRemote">
      <button id="6">ParentDir</button>
      <button id="11">Playlist</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">ParentDir</button>
    </joystick>

     <remote>
      <zero>Queue</zero>
      <star>Queue</star>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Playlist</space>
      <q>Queue</q>
    </keyboard>
  </MyMusicLibrary>


  <FullscreenVideo>
    <remote>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <back>SmallStepBack</back>
      <menu>OSD</menu>
      <start>OSD</start>
      <title>CodecInfo</title>
      <info>Info</info>
      <enter>AspectRatio</enter>
      <select>AspectRatio</select>
   </remote>

    <gamepad>
      <A>Pause</A>
      <B>Stop</B>
      <Y>AspectRatio</Y>
      <black>CodecInfo</black>
      <white>Info</white>
      <back>SmallStepBack</back>
      <start>OSD</start>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
      <dpadleft>StepBack</dpadleft>
      <dpadright>StepForward</dpadright>
      <dpadup>BigStepForward</dpadup>
      <dpaddown>BigStepBack</dpaddown>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="1">Pause</button>
      <button id="2">Stop</button>
      <button id="3">CodecInfo</button>
      <button id="5">AspectRatio</button>
      <button id="6">Info</button>
      <button id="9">OSD</button>
      <button id="13">BigStepForward</button>
      <button id="14">StepForward</button>
      <button id="15">BigStepBack</button>
      <button id="16">StepBack</button>
      <button id="17">SmallStepBack</button>
      <axis id="3" limit="0">AnalogRewind</axis>
      <axis id="6" limit="0">AnalogFastForward</axis>
    </joystick>

    <joystick name="WiiRemote">
      <button id="1">Pause</button>
      <button id="2">Stop</button>
      <button id="3">StepBack</button>
      <button id="4">StepForward</button>
      <button id="5">OSD</button>
      <button id="6">Info</button>
      <button id="10">CodecInfo</button>
      <button id="11">AspectRatio</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="1">VolumeUp</button>
      <button id="2">VolumeDown</button>
      <button id="3">StepBack</button>
      <button id="4">StepForward</button>
      <button id="5">OSD</button>
      <button id="6">Fullscreen</button>
    </joystick>

    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>StepForward</period>
      <comma>StepBack</comma>
      <backspace>Fullscreen</backspace>
      <quote>SmallStepBack</quote>
      <opensquarebracket>BigStepForward</opensquarebracket>
      <closesquarebracket>BigStepBack</closesquarebracket>
      <return>OSD</return>
      <enter>OSD</enter>
      <m>OSD</m>
      <i>Info</i>
      <o>CodecInfo</o>
      <z>AspectRatio</z>
      <t>ShowSubtitles</t>
      <l>NextSubtitle</l>      
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <a>AudioDelay</a>
      <escape>Fullscreen</escape>
    </keyboard>
  </FullscreenVideo>


  <FullscreenInfo>
    <remote>
      <title>CodecInfo</title>
      <info>Close</info>
      <menu>OSD</menu>
   </remote>

    <gamepad>
      <B>Close</B>
      <start>OSD</start>
      <black>CodecInfo</black>
      <white>Close</white>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">Close</button>
      <button id="3">CodecInfo</button>
      <button id="6">Close</button>
      <button id="9">OSD</button>
      <axis id="3" limit="0">AnalogRewind</axis>
      <axis id="6" limit="0">AnalogFastForward</axis>
    </joystick>

    <joystick name="WiiRemote">
      <button id="5">CodecInfo</button>
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>StepForward</period>
      <backspace>Close</backspace>
      <o>CodecInfo</o>
      <i>Close</i>
      <m>OSD</m>
    </keyboard>
  </FullscreenInfo>

  <PlayerControls>
    <gamepad>
      <back>Close</back>
      <start>Close</start>
    </gamepad>

    <keyboard>
      <escape>Close</escape>
      <m>close</m>
    </keyboard>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Close</button>
      <button id="17">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <menu>Close</menu>
    </remote>
  </PlayerControls>


  <Visualisation>
    <remote>
      <left>PreviousPreset</left>
      <right>NextPreset</right>
      <up>IncreaseRating</up>
      <down>DecreaseRating</down>
      <back>LockPreset</back>
      <title>CodecInfo</title>
      <select>XBMC.ActivateWindow(VisualisationPresetList)</select>
      <menu>XBMC.ActivateWindow(MusicOSD)</menu>
      <start>XBMC.ActivateWindow(MusicOSD)</start>
      <info>Info</info>
    </remote>

    <gamepad>
      <A>Pause</A>
      <B>Stop</B>
      <Y>XBMC.ActivateWindow(VisualisationPresetList)</Y>
      <black>CodecInfo</black>
      <white>Info</white>
      <start>XBMC.ActivateWindow(MusicOSD)</start>
      <back>LockPreset</back>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
      <dpadleft>SkipPrevious</dpadleft>
      <dpadright>SkipNext</dpadright>
      <dpadup>NextPreset</dpadup>
      <dpaddown>PreviousPreset</dpaddown>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="1">Pause</button>
      <button id="2">Stop</button>
      <button id="3">CodecInfo</button>
      <button id="5">XBMC.ActivateWindow(VisualisationPresetList)</button>
      <button id="6">Info</button>
      <button id="9">XBMC.ActivateWindow(MusicOSD)</button>
      <button id="13">NextPreset</button>
      <button id="14">SkipNext</button>
      <button id="15">PreviousPreset</button>
      <button id="16">SkipPrevious</button>
      <axis id="3" limit="0">AnalogRewind</axis>
      <axis id="6" limit="0">AnalogFastForward</axis>
   </joystick>

    <joystick name="WiiRemote">
      <button id="1">Pause</button>
      <button id="2">Stop</button>
      <button id="3">SkipNext</button>
      <button id="4">SkipPrevious</button>
      <button id="5">XBMC.ActivateWindow(MusicOSD)</button>
      <button id="6">Info</button>
      <button id="10">IncreaseRating</button>
      <button id="11">DecreaseRating</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="1">VolumeUp</button>
      <button id="2">VolumeDown</button>
      <button id="3">SkipPrevious</button>
      <button id="4">SkipNext</button>
      <button id="5">XBMC.ActivateWindow(MusicOSD)</button>
      <button id="6">Fullscreen</button>
    </joystick>

    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <return>ActivateWindow(MusicOSD)</return>
      <enter>ActivateWindow(MusicOSD)</enter>
      <m>ActivateWindow(MusicOSD)</m>
      <i>Info</i>
      <p>ActivateWindow(VisualisationPresetList)</p>
      <v>ActivateWindow(VisualisationSettings)</v>
      <n>ActivateWindow(MusicPlaylist)</n>
      <left>SkipPrevious</left>
      <right>SkipNext</right>
      <up>IncreaseRating</up>
      <down>DecreaseRating</down>
      <!--<back>NextPreset</back>!-->
      <o>CodecInfo</o>
      <l>LockPreset</l>
      <escape>FullScreen</escape>
    </keyboard>
  </Visualisation>

  <MusicOSD>
    <gamepad>
      <back>Close</back>
      <start>Close</start>
      <black>CodecInfo</black>
      <white>Info</white>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="17">Close</button>
      <button id="19">Close</button>
      <button id="3">CodecInfo</button>
      <button id="6">Info</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
      <button id="10">CodecInfo</button>
      <button id="11">Info</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <menu>Close</menu>
      <title>Info</title>
      <info>CodecInfo</info>
    </remote>

    <keyboard>
      <escape>Close</escape>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <m>Close</m>
      <i>Info</i>
      <o>CodecInfo</o>
      <p>ActivateWindow(VisualisationPresetList)</p>
      <v>ActivateWindow(VisualisationSettings)</v>
      <n>ActivateWindow(MusicPlaylist)</n>
    </keyboard>
  </MusicOSD>


  <VisualisationSettings>
    <gamepad>
      <B>Close</B>
      <back>Close</back>
      <start>Close</start>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">Close</button>
      <button id="3">Close</button>
      <button id="9">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
      <button id="10">XBMC.ActivateWindow(VisualisationPresetList)</button>
      <button id="11">XBMC.ActivateWindow(MusicPlaylist)</button>
    </joystick>

    <remote>
      <menu>Close</menu>
    </remote>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <escape>Close</escape>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <m>Close</m>
      <i>Info</i>
      <o>CodecInfo</o>
      <p>ActivateWindow(VisualisationPresetList)</p>
      <v>Close</v>
      <n>ActivateWindow(MusicPlaylist)</n>
    </keyboard>
  </VisualisationSettings>


  <VisualisationPresetList>
    <gamepad>
      <B>Close</B>
      <back>Close</back>
      <start>Close</start>
      <Y>Close</Y>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">Close</button>
      <button id="3">Close</button>
      <button id="5">Close</button>
      <button id="9">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <menu>Close</menu>
    </remote>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <escape>Close</escape>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <m>Close</m>
      <i>Info</i>
      <o>CodecInfo</o>
      <p>Close</p>
      <v>Close</v>
      <n>ActivateWindow(MusicPlaylist)</n>
    </keyboard>
  </VisualisationPresetList>


  <SlideShow>
    <gamepad>
      <A>Pause</A>
      <B>Stop</B>
      <Y>Rotate</Y>
      <X>ZoomNormal</X>
      <black>CodecInfo</black>
      <white>Info</white>
      <righttrigger>NextPicture</righttrigger>
      <lefttrigger>PreviousPicture</lefttrigger>
      <dpadleft>PreviousPicture</dpadleft>
      <dpadright>NextPicture</dpadright>
      <dpadup>ZoomIn</dpadup>
      <dpaddown>ZoomOut</dpaddown>
      <leftthumbstick>AnalogMove</leftthumbstick>
      <back>Stop</back>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="1">Pause</button>
      <button id="2">Stop</button>
      <button id="3">CodecInfo</button>
      <button id="4">ZoomNormal</button>
      <button id="5">Rotate</button>
      <button id="6">Info</button>
      <button id="13">ZoomIn</button>
      <button id="14">NextPicture</button>
      <button id="15">ZoomOut</button>
      <button id="16">PreviousPicture</button>
      <button id="17">Stop</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="1">Pause</button>
      <button id="2">Stop</button>
      <button id="3">PreviousPicture</button>
      <button id="4">NextPicture</button>
      <button id="5">CodecInfo</button>
      <button id="6">Info</button>
      <button id="10">ZoomIn</button>
      <button id="11">ZoomOut</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="1">ZoomIn</button>
      <button id="2">ZoomOut</button>
      <button id="3">PreviousPicture</button>
      <button id="4">NextPicture</button>
      <button id="5">Info</button>
      <button id="6">Stop</button>
    </joystick>

    <remote>
      <zero>ZoomNormal</zero>
      <one>ZoomLevel1</one>
      <two>ZoomLevel2</two>
      <three>ZoomLevel3</three>
      <four>ZoomLevel4</four>
      <five>ZoomLevel5</five>
      <six>ZoomLevel6</six>
      <seven>ZoomLevel7</seven>
      <eight>ZoomLevel8</eight>
      <nine>ZoomLevel9</nine>
      <info>CodecInfo</info>
      <skipplus>NextPicture</skipplus>
      <skipminus>PreviousPicture</skipminus>
      <title>Info</title>
      <select>Rotate</select>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <zero>ZoomNormal</zero>
      <one>ZoomLevel1</one>
      <two>ZoomLevel2</two>
      <three>ZoomLevel3</three>
      <four>ZoomLevel4</four>
      <five>ZoomLevel5</five>
      <six>ZoomLevel6</six>
      <seven>ZoomLevel7</seven>
      <eight>ZoomLevel8</eight>
      <nine>ZoomLevel9</nine>
      <i>Info</i>
      <o>CodecInfo</o>
      <period>NextPicture</period>
      <comma>PreviousPicture</comma>
      <plus>ZoomIn</plus>
      <minus>ZoomOut</minus>
      <r>Rotate</r>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </SlideShow>


  <ScreenCalibration>
    <gamepad>
      <leftthumbstick>AnalogMove</leftthumbstick>
      <A>NextCalibration</A>
      <black>ResetCalibration</black>
      <white>NextResolution</white>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="1">NextCalibration</button>
      <button id="3">ResetCalibration</button>
      <button id="6">NextResolution</button>
      <button id="2">PreviousMenu</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="5">NextCalibration</button>
      <button id="10">NextResolution</button>
      <button id="11">ResetResolution</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="5">NextCalibration</button>
    </joystick>

    <remote>
      <select>NextCalibration</select>
      <enter>NextCalibration</enter>
      <zero>ResetCalibration</zero>
      <display>NextResolution</display>
      <xbox>NextResolution</xbox>
    </remote>

    <keyboard>
      <return>NextCalibration</return>
      <enter>NextCalibration</enter>
      <d>ResetCalibration</d>
      <r>NextResolution</r>
    </keyboard>
  </ScreenCalibration>


  <GUICalibration>
    <gamepad>
      <leftthumbstick>AnalogMove</leftthumbstick>
      <A>NextCalibration</A>
      <black>ResetCalibration</black>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="1">NextCalibration</button>
      <button id="3">ResetCalibration</button>
      <button id="6">NextResolution</button>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <select>NextCalibration</select>
      <enter>NextCalibration</enter>
      <zero>ResetCalibration</zero>
    </remote>

    <keyboard>
      <return>NextCalibration</return>
      <enter>NextCalibration</enter>
      <d>ResetCalibration</d>
    </keyboard>
  </GUICalibration>


  <SelectDialog>
    <gamepad>
      <back>Close</back>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="17">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>Close</back>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
    </keyboard>
  </SelectDialog>
  

  <VideoOSD>
    <gamepad>
      <start>Close</start>
      <back>PreviousMenu</back>
      <B>PreviousMenu</B>
      <black>CodecInfo</black>
      <white>Info</white>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Close</button>
      <button id="17">PreviousMenu</button>
      <button id="2">PreviousMenu</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
      <menu>Close</menu>
      <start>Close</start>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
      <m>Close</m>
      <i>Info</i>
      <o>CodecInfo</o>
    </keyboard>
  </VideoOSD>

  <VideoMenu>
    <gamepad>
      <Y>AspectRatio</Y>
      <B>Stop</B>
      <start>OSD</start>
      <back>PreviousMenu</back>
      <white>Info</white>
      <black>CodecInfo</black>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>      
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="5">AspectRatio</button>
      <button id="2">Stop</button>
      <button id="9">OSD</button>
      <button id="17">PreviousMenu</button>
      <button id="6">Info</button>
      <button id="3">CodecInfo</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="5">OSD</button>
      <button id="10">Info</button>
      <button id="11">AspectRatio</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="5">OSD</button>
    </joystick>

    <remote>
      <menu>OSD</menu>
      <back>PreviousMenu</back>
      <info>Info</info>
      <title>CodecInfo</title>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
    </remote>

    <keyboard>
      <opensquarebracket>BigStepForward</opensquarebracket>
      <closesquarebracket>BigStepBack</closesquarebracket>
      <m>OSD</m>
      <i>Info</i>
      <o>CodecInfo</o>
      <z>AspectRatio</z>
      <t>ShowSubtitles</t>
      <l>NextSubtitle</l>      
      <a>AudioDelay</a>
      <escape>Fullscreen</escape>
      <return>Select</return>
      <enter>Select</enter>
      <!-- backspace>Fullscreen</backspace -->
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </VideoMenu>


  <OSDVideoSettings>
    <gamepad>
      <X></X>
      <Y>AspectRatio</Y>
      <B>Close</B>
      <back>Close</back>
      <start>Close</start>
      <black>CodecInfo</black>
      <white>Info</white>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="4"></button>
      <button id="5">AspectRatio</button>
      <button id="2">Close</button>
      <button id="17">Close</button>
      <button id="19">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>Close</back>
      <menu>Close</menu>
      <start>Close</start>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
      <i>Info</i>
      <o>CodecInfo</o>
    </keyboard>
  </OSDVideoSettings>

  <OSDAudioSettings>
    <gamepad>
      <X></X>
      <Y>AspectRatio</Y>
      <B>Close</B>
      <back>Close</back>
      <start>Close</start>
      <black>CodecInfo</black>
      <white>Info</white>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="4"></button>
      <button id="5">AspectRatio</button>
      <button id="2">Close</button>
      <button id="17">Close</button>
      <button id="19">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>Close</back>
      <menu>Close</menu>
      <start>Close</start>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
      <i>Info</i>
      <o>CodecInfo</o>
    </keyboard>
  </OSDAudioSettings>

  <VideoBookmarks>
    <gamepad>
      <X></X>
      <Y>Delete</Y>
      <B>Close</B>
      <back>Close</back>
      <start>Close</start>
      <leftanalogtrigger>AnalogRewind</leftanalogtrigger>
      <rightanalogtrigger>AnalogFastForward</rightanalogtrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="4"></button>
      <button id="5">Delete</button>
      <button id="2">Close</button>
      <button id="17">Close</button>
      <button id="19">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
      <button id="11">Delete</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>Close</back>
      <menu>Close</menu>
      <start>Close</start>
      <zero>Delete</zero>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
    </keyboard>
  </VideoBookmarks>
  

  <MyVideoLibrary>
    <gamepad>
      <black>Delete</black>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="3">Delete</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">ParentDir</button>
      <button id="11">Playlist</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">ParentDir</button>
    </joystick>

    <remote>
      <zero>Queue</zero>
      <clear>Delete</clear>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <delete>Delete</delete>
      <space>Playlist</space>
      <w>ToggleWatched</w>
    </keyboard>
  </MyVideoLibrary>


  <MyVideoFiles>
    <gamepad>
      <Y>Queue</Y>
      <black>Playlist</black>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="5">Queue</button>
      <button id="3">Playlist</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">ParentDir</button>
      <button id="11">Playlist</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">ParentDir</button>
    </joystick>

    <remote>
      <zero>Queue</zero>
      <star>Queue</star>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <space>Playlist</space>
      <q>Queue</q>
    </keyboard>
  </MyVideoFiles>


  <MyVideoPlaylist>
    <gamepad>
      <Y>Delete</Y>
      <black>Playlist</black> <!-- Close playlist -->
      <back>Playlist</back>   <!-- Close playlist -->
      <B>Playlist</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="5">Delete</button>
      <button id="3">Playlist</button>
      <button id="17">Playlist</button>
      <button id="2">Playlist</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Playlist</button>
      <button id="7">MoveItemDown</button>
      <button id="9">MoveItemUp</button>
      <button id="11">Delete</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Playlist</button>
    </joystick>

    <remote>
      <back>Playlist</back> <!-- Close playlist -->
      <clear>Delete</clear>
      <zero>Delete</zero>
      <two>MoveItemUp</two>
      <five>MoveItemDown</five>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
    </remote>

    <keyboard>
      <backspace>Playlist</backspace> <!-- Close playlist -->
      <space>Playlist</space> <!-- Close playlist -->
      <delete>Delete</delete>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
    </keyboard>
  </MyVideoPlaylist>


  <VirtualKeyboard>
    <gamepad>
      <start>Enter</start>
      <B>BackSpace</B>
      <Y>Shift</Y>
      <X>Symbols</X>
      <lefttrigger>CursorLeft</lefttrigger>
      <righttrigger>CursorRight</righttrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Enter</button>
      <button id="2">BackSpace</button>
      <button id="5">Shift</button>
      <button id="4">Symbols</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Shift</button>
      <button id="7">CursorLeft</button>
      <button id="9">CursorRight</button>
      <button id="10">Symbols</button>
      <button id="11">BackSpace</button>
    </joystick>


    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>BackSpace</back>
      <star>Shift</star>
      <hash>Symbols</hash>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
      <pageminus>CursorLeft</pageminus>
      <pageplus>CursorRight</pageplus>
    </remote>
  </VirtualKeyboard>


  <ContextMenu>
    <gamepad>
      <white>Close</white>
      <B>Close</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="6">Close</button>
      <button id="2">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <title>Close</title>
      <back>Close</back>
    </remote>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <c>Close</c>
      <menu>Close</menu>
      <backspace>Close</backspace>
    </keyboard>
  </ContextMenu>

  <FileStackingDialog>
    <remote>
      <back>Close</back>
    </remote>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <backspace>Close</backspace>
    </keyboard>
  </FileStackingDialog>




  <Scripts>
    <gamepad>
      <black>XBMC.ActivateWindow(ScriptsDebugInfo)</black>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="3">XBMC.ActivateWindow(ScriptsDebugInfo)</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="11">XBMC.ActivateWindow(ScriptsDebugInfo)</button>
    </joystick>

    <remote>
      <info>XBMC.ActivateWindow(ScriptsDebugInfo)</info>
    </remote>

    <keyboard>
      <i>XBMC.ActivateWindow(ScriptsDebugInfo)</i>
    </keyboard>
  </Scripts>


  <ScriptsDebugInfo>
    <gamepad>
      <white>Info</white> <!-- clears debug python info -->
    </gamepad>

    <remote>
      <info>Info</info> <!-- clears debug python info -->
    </remote>

    <keyboard>
      <i>Info</i> <!-- clears debug python info -->
    </keyboard>

    <joystick name="WiiRemote">
      <button id="11">Info</button>
    </joystick>
  </ScriptsDebugInfo>


  <NumericInput>
    <gamepad>
      <B>BackSpace</B>
      <start>Enter</start>
      <lefttrigger>SkipPrevious</lefttrigger>
      <righttrigger>SkipNext</righttrigger>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">BackSpace</button>
      <button id="9">Enter</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="7">SkipPrevious</button>
      <button id="9">SkipNext</button>
      <button id="10">Enter</button>
      <button id="11">BackSpace</button>
    </joystick>

    <remote>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
      <back>BackSpace</back>
    </remote>
  </NumericInput>


  <GamepadInput>
    <gamepad>
      <start>Stop</start> <!-- Enter Password -->
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Stop</button> <!-- Enter Password -->
    </joystick>
  </GamepadInput>

  <Weather>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
      <key id="65446">PreviousMenu</key>
    </keyboard>
  </Weather>

  <Settings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </Settings>

  <MyPicturesSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyPicturesSettings>

  <MyProgramsSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyProgramsSettings>

  <MyWeatherSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyWeatherSettings>

  <MyMusicSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyMusicSettings>

  <SystemSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </SystemSettings>

  <MyVideosSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </MyVideosSettings>

  <NetworkSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </NetworkSettings>

  <AppearanceSettings>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </AppearanceSettings>

  <Profiles>
    <gamepad>
      <B>PreviousMenu</B>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </Profiles>

  <systeminfo>
    <gamepad>
      <B>PreviousMenu</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </systeminfo>

  <shutdownmenu>
    <gamepad>
      <B>PreviousMenu</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </shutdownmenu>

  <submenu>
    <gamepad>
      <B>PreviousMenu</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">PreviousMenu</button>
    </joystick>

    <remote>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </submenu>

  <MusicInformation>
    <gamepad>
      <B>Close</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <back>Close</back>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <key id="65446">Close</key>
    </keyboard>
  </MusicInformation>

  <MovieInformation>
    <gamepad>
      <B>Close</B>	
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="2">Close</button>
    </joystick>

    <joystick name="WiiRemote">
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="6">Close</button>
    </joystick>

    <remote>
      <info>Close</info>
      <back>Close</back>
    </remote>

    <keyboard>
      <backspace>Close</backspace>
      <key id="65446">Close</key>
    </keyboard>
  </MovieInformation>

  <LockSettings>
    <gamepad>
      <start>Close</start>
      <B>PreviousMenu</B>
      <back>PreviousMenu</back>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Close</button>
      <button id="2">PreviousMenu</button>
      <button id="17">PreviousMenu</button>
    </joystick>

    <remote>
      <menu>Close</menu>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <escape>Close</escape>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </LockSettings>

  <ProfileSettings>
    <gamepad>
      <start>Close</start>
      <B>PreviousMenu</B>
      <back>PreviousMenu</back>
    </gamepad>

    <joystick name="Microsoft Xbox Controller S">
      <altname>Mad Catz MicroCON</altname>
      <altname>Logitech Xbox Cordless Controller</altname>
      <button id="9">Close</button>
      <button id="2">PreviousMenu</button>
      <button id="17">PreviousMenu</button>
    </joystick>

    <remote>
      <menu>Close</menu>
      <back>PreviousMenu</back>
    </remote>

    <keyboard>
      <escape>Close</escape>
      <backspace>PreviousMenu</backspace>
    </keyboard>
  </ProfileSettings>

  <PictureInfo>
    <gamepad>
      <dpadleft>PreviousPicture</dpadleft>
      <dpadright>NextPicture</dpadright>
      <black>Close</black>
    </gamepad>

    <remote>
      <skipplus>NextPicture</skipplus>
      <skipminus>PreviousPicture</skipminus>
      <info>Close</info>
      <back>Close</back> 
    </remote>

    <joystick name="WiiRemote">
      <button id="3">PreviousPicture</button>
      <button id="4">NextPicture</button>
      <button id="6">Close</button>
    </joystick>

    <joystick name="AppleRemote">
      <button id="3">Left</button>
      <button id="4">Right</button>
      <button id="6">Close</button>
    </joystick>

    <keyboard>
      <period>NextPicture</period>
      <comma>PreviousPicture</comma>
      <i>Close</i>
      <o>Close</o>
      <backspace>Close</backspace>
      <space>Pause</space>
    </keyboard>
  </PictureInfo>

  <Favourites>
    <remote>
      <back>Close</back> 
    </remote>

    <keyboard>
      <backspace>Close</backspace>
    </keyboard>
  </Favourites>
</keymap>


