Archive:Sample MCE remote keyboard.xml

From Official Kodi Wiki
Revision as of 16:49, 7 January 2010 by >Jhsrennie
Jump to navigation Jump to search

This is an example of a keyboard.xml file you might create in your userdata/keymaps folder to map MCE shortcut keys to XBMC actions. The basic operations of Play, Pause, Stop etc are already included in the system keyboard.xml. I've included all the MCE shortcuts from http://msdn.microsoft.com/en-us/library/bb189249.aspx even though some don't have an obvious action in XBMC. All the keys that don't have an obvious function are mapped to Stop.

<keymap>
  <global>
    <keyboard>
      <!-- Transport controls -->
      <p mod="ctrl,shift">Play</p>
      <s mod="ctrl,shift">Notification(MCEKeypress, MCEKeypress, 3)</s>
      <p mod="ctrl">Pause</p>
      <f mod="ctrl,shift">FastForward</f>
      <b mod="ctrl,shift">Rewind</b>
      <f mod="ctrl">SkipNext</f>
      <b mod="ctrl">SkipPrevious</b>
      <!-- Top level menus -->
      <!-- MyTV ctrl-shift-T -->
      <t mod="ctrl,shift">Notification(MCEKeypress, My TV ctrl-shift-t, 3)</t>
      <!-- MyMusic ctrl-M -->
      <m mod="ctrl">ActivateWindow(MyMusic)</m>
      <!-- MyVideos ctrl-E -->
      <e mod="ctrl">ActivateWindow(MyVideos)</e>
      <!-- MyPictures ctrl-I -->
      <i mod="ctrl">ActivateWindow(MyPictures)</i>
      <!-- TV and DVD menus -->
      <!-- Guide ctrl-G -->
      <g mod="ctrl">Notification(MCEKeypress, Guide ctrl-G, 3)</g>
      <!-- Record ctrl-R -->
      <r mod="ctrl">Notification(MCEKeypress, Record ctrl-R, 3)</r>
      <!-- Details ctrl-D -->
      <d mod="ctrl">Info</d>
      <!-- DVD Menu ctrl-shift-M -->
      <m mod="ctrl,shift">Notification(MCEKeypress, DVD menu ctrl-shift-M, 3)</m>
      <!-- Recorded TV ctrl-O -->
      <o mod="ctrl">Notification(MCEKeypress, MyTV ctrl-O, 3)</o>
      <!-- DVD Audio -->
      <a mod="ctrl,shift">Notification(MCEKeypress, DVD Audio ctrl-shift-A, 3)</a>
      <!-- DVD Subtitle -->
      <u mod="ctrl">Notification(MCEKeypress, DVD Subtitles ctrl-U, 3)</u>
      <!-- Volume controls -->
      <f8>Mute</f8>
      <f9>VolumeDown</f9>
      <f10>VolumeUp</f10>
    </keyboard>
  </global>
</keymap>