Archive:Sample MCE remote keyboard.xml: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
m (Bot: Automated text replacement (- XBMC + Kodi ))
m (Bot: Automated text replacement (-{{subst:Name}} +Kodi))
Line 26: Line 26:
       <!-- These are the four buttons below the arrows on the MS remote -->
       <!-- These are the four buttons below the arrows on the MS remote -->


       <!-- Recorded TV: ctrl-O: there isn't an obvious function in {{subst:Name}} -->
       <!-- Recorded TV: ctrl-O: there isn't an obvious function in Kodi -->
       <o mod="ctrl">Notification(Key, Recorded TV, 3)</o>
       <o mod="ctrl">Notification(Key, Recorded TV, 3)</o>
       <!-- Guide: ctrl-G: displays the OSD -->
       <!-- Guide: ctrl-G: displays the OSD -->
       <g mod="ctrl">OSD</g>
       <g mod="ctrl">OSD</g>
       <!-- Live TV: ctrl-T: there isn't an obvious function in {{subst:Name}} -->
       <!-- Live TV: ctrl-T: there isn't an obvious function in Kodi -->
       <t mod="ctrl">Notification(Key, Live TV, 3)</t>
       <t mod="ctrl">Notification(Key, Live TV, 3)</t>
       <!-- DVD menu: ctrl-shift-M: there isn't an obvious function in {{subst:Name}} -->
       <!-- DVD menu: ctrl-shift-M: there isn't an obvious function in Kodi -->
       <m mod="ctrl,shift">Notification(Key, DVD menu, 3)</m>
       <m mod="ctrl,shift">Notification(Key, DVD menu, 3)</m>
       <!-- Radio: ctrl-A: there isn't an obvious function in {{subst:Name}} -->
       <!-- Radio: ctrl-A: there isn't an obvious function in Kodi -->
       <a mod="ctrl">Notification(Key, Radio, 3)</a>
       <a mod="ctrl">Notification(Key, Radio, 3)</a>


Line 51: Line 51:
       <!-- These buttons aren't on the MS remote but are on many clone remotes -->
       <!-- These buttons aren't on the MS remote but are on many clone remotes -->


       <!-- My TV: ctrl-shift-T: there isn't an obvious function in {{subst:Name}} -->
       <!-- My TV: ctrl-shift-T: there isn't an obvious function in Kodi -->
       <t mod="ctrl,shift">Notification(Key, My TV, 3)</t>
       <t mod="ctrl,shift">Notification(Key, My TV, 3)</t>
       <!-- My Music: ctrl-M -->
       <!-- My Music: ctrl-M -->

Revision as of 00:28, 13 May 2015

This is an example of a keyboard.xml file you might create in your userdata/keymaps folder to map MCE shortcut keys to Kodi 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.

<keymap>
  <global>
    <keyboard>
      <!-- Windows button: mapped to ctrl-shift-W by MSRemote.reg -->
      <w mod="ctrl,shift">Notification(Key, Windows button, 3)</w>

      <!-- Details: ctrl-D: displays Info. Labelled as "More" on the MS remote -->
      <d mod="ctrl">Info</d>

      <!-- MCE uses F10 for vol up, F9 for vol down and F8 for mute -->
      <f10>VolumeUp</f10>
      <f9>VolumeDown</f9>
      <f8>Mute</f8>

      <!-- MCE uses equals (plus) for channel up, minus for channel down -->
      <equals>PageUp</equals>
      <minus>PageDown</minus>

      <!-- These are the four buttons below the arrows on the MS remote -->

      <!-- Recorded TV: ctrl-O: there isn't an obvious function in Kodi -->
      <o mod="ctrl">Notification(Key, Recorded TV, 3)</o>
      <!-- Guide: ctrl-G: displays the OSD -->
      <g mod="ctrl">OSD</g>
      <!-- Live TV: ctrl-T: there isn't an obvious function in Kodi -->
      <t mod="ctrl">Notification(Key, Live TV, 3)</t>
      <!-- DVD menu: ctrl-shift-M: there isn't an obvious function in Kodi -->
      <m mod="ctrl,shift">Notification(Key, DVD menu, 3)</m>
      <!-- Radio: ctrl-A: there isn't an obvious function in Kodi -->
      <a mod="ctrl">Notification(Key, Radio, 3)</a>

      <!-- Some MS remotes have the four coloured buttons. These are mapped -->
      <!-- to ctrl-alt-1 to 4 by MSRemote.reg. -->

      <!-- Red button: ctrl-alt-1: this is a placeholder -->
      <one mod="ctrl,alt">Notification(Key, Red button, 3)</one>
      <!-- Green button: ctrl-alt-2: this is a placeholder -->
      <two mod="ctrl,alt">Notification(Key, Green button, 3)</two>
      <!-- Yellow button: ctrl-alt-3: this is a placeholder -->
      <three mod="ctrl,alt">Notification(Key, Yellow button, 3)</three>
      <!-- Blue button: ctrl-alt-4: this is a placeholder -->
      <four mod="ctrl,alt">Notification(Key, Blue button, 3)</four>

      <!-- These buttons aren't on the MS remote but are on many clone remotes -->

      <!-- My TV: ctrl-shift-T: there isn't an obvious function in Kodi -->
      <t mod="ctrl,shift">Notification(Key, My TV, 3)</t>
      <!-- My Music: ctrl-M -->
      <m mod="ctrl">ActivateWindow(music)</m>
      <!-- My Pictures: ctrl-I -->
      <i mod="ctrl">ActivateWindow(pictures)</i>
      <!-- My Movies: ctrl-E -->
      <e mod="ctrl">ActivateWindow(video)</e>
    </keyboard>
  </global>

  <!-- ctrl-D needs to close any open Info screens -->
  <FullscreenInfo>
    <keyboard>
      <d mod="ctrl">Close</d>
    </keyboard>
  </FullscreenInfo>
  <MovieInformation>
    <keyboard>
      <d mod="ctrl">Close</d>
    </keyboard>
  </MovieInformation>
  <PictureInfo>
    <keyboard>
      <d mod="ctrl">Close</d>
    </keyboard>
  </PictureInfo>
</keymap>