Skip to content

Instantly share code, notes, and snippets.

@LucaTNT
Created May 8, 2013 12:28
Show Gist options
  • Save LucaTNT/5540119 to your computer and use it in GitHub Desktop.
Save LucaTNT/5540119 to your computer and use it in GitHub Desktop.
Custom XBMC keyboard.xml to be used with chinese USB infrared remote control that emulates a keyboard. Here it is: http://dx.com/p/multimedia-ir-remote-controller-with-usb-receiver-for-pc-1-cr2025-26368
<keymap>
<global>
<keyboard>
<!-- reload Keymap, n on the actual keyboard -->
<n>XBMC.Action(reloadkeymaps)</n>
<!-- Orange movie button brings to Movie list -->
<b mod="ctrl,alt">ActivateWindow(Videos,MovieTitles)</b>
<!-- Yellow TV button brings to TV Show list -->
<d mod="ctrl,alt">ActivateWindow(Videos,TvShowTitles)</d>
<!-- Close button, top left, goes back to the main menu -->
<f4 mod="alt">ActivateWindow(home)</f4>
<!-- WWW button, first row, brings up the settings window -->
<browser_home>ActivateWindow(settings)</browser_home>
<!-- Mail button, first row, shows video info while playing, opens auxiliary panes in the meus -->
<launch_mail>Info</launch_mail>
<!-- Power button puts the PC to sleep -->
<power>Suspend</power>
<!-- My PC button, bottom row, opens the context menu -->
<e mod="win">ContextMenu</e>
<e>ContextMenu</e>
<!-- File manager key, second-to-last row, opens file manager -->
<o mod="ctrl">ActivateWindow(filemanager)</o>
</keyboard>
</global>
<FullScreenVideo>
<keyboard>
<!-- Green music button, changes audio language -->
<a mod="ctrl,alt">AudioNextLanguage</a>
<!-- Blue photo button, changes subtitle language -->
<c mod="ctrl,alt">NextSubtitle</c>
<!-- Fullscreen button, middle row, brings up the OSD -->
<three mod="ctrl">OSD</three>
<!-- Fast forward, remapped to jump 30 seconds forward -->
<f mod="ctrl,shift">StepForward</f>
<!-- Fast backward, remapped to jump 30 seconds back -->
<b mod="ctrl,shift">StepBack</b>
<!-- Next track, remapped to jump 10 minutes forward -->
<next_track>BigStepForward</next_track>
<!-- Previous track, remapped to jump 10 minutes back -->
<prev_track>BigStepBack</prev_track>
<!-- Windows key, changes the aspect ratio -->
<leftwindows>AspectRatio</leftwindows>
</keyboard>
</FullScreenVideo>
</keymap>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment