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

From Official Kodi Wiki
Jump to navigation Jump to search
>Jhsrennie
New page: 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 alrea...
 
>Jhsrennie
No edit summary
Line 5: Line 5:
http://msdn.microsoft.com/en-us/library/bb189249.aspx even though some
http://msdn.microsoft.com/en-us/library/bb189249.aspx even though some
don't have an obvious action in XBMC.
don't have an obvious action in XBMC.
<pre>
&lt;keymap&gt;
  &lt;global&gt;
    &lt;keyboard&gt;
      &lt;p mod="ctrl,shift"&gt;Play&lt;/p&gt;
      &lt;s mod="ctrl,shift"&gt;Stop&lt;/s&gt;
      &lt;p mod="ctrl"&gt;Pause&lt;/p&gt;
      &lt;f mod="ctrl,shift"&gt;FastForward&lt;/f&gt;
      &lt;b mod="ctrl,shift"&gt;Rewind&lt;/b&gt;
      &lt;f mod="ctrl"&gt;SkipNext&lt;/f&gt;
      &lt;b mod="ctrl"&gt;SkipPrevious&lt;/b&gt;
    &lt;/keyboard&gt;
  &lt;/global&gt;
&lt;/keymap&gt;
</pre>

Revision as of 16:08, 7 January 2010

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.

<keymap>
  <global>
    <keyboard>
      <p mod="ctrl,shift">Play</p>
      <s mod="ctrl,shift">Stop</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>
    </keyboard>
  </global>
</keymap>