Advertisement
Guest User

Untitled

a guest
Aug 21st, 2011
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 16.55 KB | None | 0 0
  1. <!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
  2. <!-- The <global> section is a fall through - they will only be used if the button is not          -->
  3. <!-- used in the current window's section.  Note that there is only handling                       -->
  4. <!-- for a single action per button at this stage.                                                 -->
  5. <!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox       -->
  6. <!-- gamepads.                                                                                     -->
  7.  
  8. <!-- The format is:                      -->
  9. <!--    <device>                         -->
  10. <!--      <button>action</button>        -->
  11. <!--    </device>                        -->
  12.  
  13. <!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
  14. <!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
  15. <!-- You set it up by adding a <universalremote> block to the window or <global> section:       -->
  16. <!--    <universalremote>             -->
  17. <!--       <obc45>Stop</obc45>         -->
  18. <!--    </universalremote>            -->
  19.  
  20. <!-- Note that the action can be a built-in function.                 -->
  21. <!--  eg <B>XBMC.ActivateWindow(MyMusic)</B>                         -->
  22. <!-- would automatically go to My Music on the press of the B button. -->
  23.  
  24. <!-- Joysticks / Gamepads:                                                                    -->
  25. <!--   See the sample PS3 controller configuration below for the format.                      -->
  26. <!--                                                                                          -->
  27. <!--  Joystick Name:                                                                          -->
  28. <!--   Do 'cat /proc/bus/input/devices' or see your xbmc log file  to find the names of       -->
  29. <!--   detected joysticks. The name used in the configuration should match the detected name. -->
  30. <!--                                                                                          -->
  31. <!--  Button Ids:                                                                             -->
  32. <!--   'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear   -->
  33. <!--   in xbmc.log when they are pressed. Use your log to map custom buttons to actions.      -->
  34. <!--                                                                                          -->
  35. <!--  Axis Ids / Analog Controls                                                              -->
  36. <!--   Coming soon.                                                                           -->
  37. <keymap>
  38.   <global>
  39.     <keyboard>
  40.       <p>Play</p>
  41.       <q>Queue</q>
  42.       <f>FastForward</f>
  43.       <r>Rewind</r>
  44.       <left>Left</left>
  45.       <right>Right</right>
  46.       <up>Up</up>
  47.       <down>Down</down>
  48.       <left mod="ctrl">analogseekback</left>
  49.       <right mod="ctrl">analogseekforward</right>
  50.       <pageup>PageUp</pageup>
  51.       <pagedown>PageDown</pagedown>
  52.       <return>Select</return>
  53.       <enter>Select</enter>
  54.       <backspace>Back</backspace>
  55.       <key id='65446'>Back</key>
  56.       <m>ActivateWindow(PlayerControls)</m>
  57.       <s>ActivateWindow(shutdownmenu)</s>
  58.       <escape>PreviousMenu</escape>
  59.       <i>Info</i>
  60.       <menu>ContextMenu</menu>
  61.       <c>ContextMenu</c>
  62.       <space>Pause</space>
  63.       <x>Stop</x>
  64.       <period>SkipNext</period>
  65.       <comma>SkipPrevious</comma>
  66.       <tab>FullScreen</tab>
  67.       <printscreen>Screenshot</printscreen>
  68.       <s mod="ctrl">Screenshot</s>
  69.       <minus>VolumeDown</minus>
  70.       <plus>VolumeUp</plus>
  71.       <zero>Number0</zero>
  72.       <one>Number1</one>
  73.       <two>JumpSMS2</two>
  74.       <three>JumpSMS3</three>
  75.       <four>JumpSMS4</four>
  76.       <five>JumpSMS5</five>
  77.       <six>JumpSMS6</six>
  78.       <seven>JumpSMS7</seven>
  79.       <eight>JumpSMS8</eight>
  80.       <nine>JumpSMS9</nine>
  81.       <numpadminus>VolumeDown</numpadminus>
  82.       <numpadplus>VolumeUp</numpadplus>
  83.       <numpadzero>Number0</numpadzero>
  84.       <numpadone>Number1</numpadone>
  85.       <numpadtwo>Number2</numpadtwo>
  86.       <numpadthree>Number3</numpadthree>
  87.       <numpadfour>Number4</numpadfour>
  88.       <numpadfive>Number5</numpadfive>
  89.       <numpadsix>Number6</numpadsix>
  90.       <numpadseven>Number7</numpadseven>
  91.       <numpadeight>Number8</numpadeight>
  92.       <numpadnine>Number9</numpadnine>
  93.       <!-- <backslash>ToggleFullScreen</backslash> -->
  94.       <home>FirstPage</home>
  95.       <end>LastPage</end>
  96.       <!-- PVR windows -->
  97.       <e>XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</e>
  98.       <h>XBMC.ActivateWindowAndFocus(MyPVR, 32,0, 11,0)</h>
  99.       <j>XBMC.ActivateWindowAndFocus(MyPVR, 33,0, 12,0)</j>
  100.       <k>XBMC.ActivateWindowAndFocus(MyPVR, 34,0, 13,0)</k>
  101.       <b>XBMC.ActivateWindowAndFocus(MyPVR, 35,0, 14,0)</b>
  102.       <!-- Multimedia keyboard keys -->
  103.       <browser_back>Back</browser_back>
  104.       <browser_forward/>
  105.       <browser_refresh/>
  106.       <browser_stop/>
  107.       <browser_search/>
  108.       <browser_favorites>ActivateWindow(Favourites)</browser_favorites>
  109.       <browser_home>XBMC.ActivateWindow(Home)</browser_home>
  110.       <volume_mute>Mute</volume_mute>
  111.       <volume_down>VolumeDown</volume_down>
  112.       <volume_up>VolumeUp</volume_up>
  113.       <next_track>SkipNext</next_track>
  114.       <prev_track>SkipPrevious</prev_track>
  115.       <stop>Stop</stop>
  116.       <play_pause>Pause</play_pause>
  117.       <launch_mail></launch_mail>
  118.       <launch_media_select>XBMC.ActivateWindow(MyMusic)</launch_media_select>
  119.       <launch_app1_pc_icon>ActivateWindow(MyPrograms)</launch_app1_pc_icon>
  120.       <launch_app2_pc_icon>ActivateWindow(MyPrograms)</launch_app2_pc_icon>
  121.       <launch_file_browser/>
  122.       <launch_media_center/>
  123.       <three mod="leftshift">ActivateWindow(video)</three>
  124.       <r mod="ctrl">ActivateWindow(video)</r>
  125.       <return mod="alt">ActivateWindow(video)</return>
  126.       <numpadtimes>ActivateWindow(video)</numpadtimes>
  127.       <delete>ActivateWindow(video)</delete>
  128.       <!-- ****************************************************** -->
  129.       <!-- MS Media Center keyboard shortcuts sent by MCE remotes -->
  130.       <!-- See http://msdn.microsoft.com/en-us/library/bb189249.aspx -->
  131.       <p mod="ctrl,shift">Play</p>        <!-- Play -->
  132.       <s mod="ctrl,shift">Stop</s>        <!-- Stop -->
  133.       <p mod="ctrl">Pause</p>             <!-- Pause -->
  134.       <f mod="ctrl,shift">FastForward</f> <!-- Fwd -->
  135.       <b mod="ctrl,shift">Rewind</b>      <!-- Rew -->
  136.       <f mod="ctrl">SkipNext</f>          <!-- Skip -->
  137.       <b mod="ctrl">SkipPrevious</b>      <!-- Replay -->
  138.       <d mod="ctrl">Info</d>              <!-- MCE Details -->
  139.       <f10>VolumeUp</f10>                 <!-- MCE Vol up -->
  140.       <f9>VolumeDown</f9>                 <!-- MCE Vol down -->
  141.       <f8>Mute</f8>                       <!-- MCE mute -->
  142.       <g mod="ctrl">OSD</g>               <!-- MCE Guide -->
  143.       <m mod="ctrl">ActivateWindow(music)</m>    <!-- MCE My music -->
  144.       <i mod="ctrl">ActivateWindow(pictures)</i> <!-- MCE My pictures -->
  145.       <e mod="ctrl">ActivateWindow(video)</e>    <!-- MCE videos -->
  146.       <!-- MCE keypresses without an obvious use in XBMC -->
  147.       <o mod="ctrl">ActivateWindowAndFocus(MyPVR, 34,0, 13,0)</o>
  148.       <t mod="ctrl">Notification(MCEKeypress, Live TV, 3)</t>
  149.       <t mod="ctrl,shift">ActivateWindowAndFocus(MyPVR, 32,0, 11,0)</t>
  150.       <a mod="ctrl">ActivateWindowAndFocus(MyPVR, 33,0, 12,0)</a>
  151.       <m mod="ctrl,shift">Notification(MCEKeypress, DVD menu, 3)</m>
  152.       <u mod="ctrl">Notification(MCEKeypress, DVD subtitle, 3)</u>
  153.       <a mod="ctrl,shift">Notification(MCEKeypress, DVD audio, 3)</a>
  154.     </keyboard>
  155.   </global>
  156.   <LoginScreen>
  157.     <keyboard>
  158.       <end>XBMC.ShutDown()</end>
  159.     </keyboard>
  160.   </LoginScreen>
  161.   <Home>
  162.     <keyboard>
  163.       <one>XBMC.CleanLibrary(video)</one>
  164.       <two>XBMC.UpdateLibrary(video)</two>
  165.       <four>XBMC.CleanLibrary(music)</four>
  166.       <five>XBMC.UpdateLibrary(music)</five>
  167.       <i>info</i>
  168.       <end>XBMC.ShutDown()</end>
  169.     </keyboard>
  170.   </Home>
  171.   <VirtualKeyboard>
  172.     <keyboard>
  173.       <backspace>Backspace</backspace>
  174.     </keyboard>
  175.   </VirtualKeyboard>
  176.   <MyTV>
  177.     <keyboard>
  178.       <delete>Delete</delete>
  179.       <m>Move</m>
  180.       <r>Rename</r>
  181.     </keyboard>
  182.   </MyTV>
  183.   <MyFiles>
  184.     <keyboard>
  185.       <space>Highlight</space>
  186.       <delete>Delete</delete>
  187.       <m>Move</m>
  188.       <r>Rename</r>
  189.     </keyboard>
  190.   </MyFiles>
  191.   <MyMusicPlaylist>
  192.     <keyboard>
  193.       <space>Back</space>
  194.       <delete>Delete</delete>
  195.       <u>MoveItemUp</u>
  196.       <d>MoveItemDown</d>
  197.     </keyboard>
  198.   </MyMusicPlaylist>
  199.   <MyMusicPlaylistEditor>
  200.     <keyboard>
  201.       <u>MoveItemUp</u>
  202.       <d>MoveItemDown</d>
  203.       <delete>Delete</delete>
  204.     </keyboard>
  205.   </MyMusicPlaylistEditor>
  206.   <MyMusicFiles>
  207.     <keyboard>
  208.       <space>Playlist</space>
  209.       <q>Queue</q>
  210.       <delete>Delete</delete>
  211.     </keyboard>
  212.   </MyMusicFiles>
  213.   <MyMusicLibrary>
  214.     <keyboard>
  215.       <space>Playlist</space>
  216.       <q>Queue</q>
  217.     </keyboard>
  218.   </MyMusicLibrary>
  219.   <FullscreenVideo>
  220.     <keyboard>
  221.       <f>FastForward</f>
  222.       <r>Rewind</r>
  223.       <period>StepForward</period>
  224.       <comma>StepBack</comma>
  225.       <backspace>Fullscreen</backspace>
  226.       <quote>SmallStepBack</quote>
  227.       <opensquarebracket>BigStepForward</opensquarebracket>
  228.       <closesquarebracket>BigStepBack</closesquarebracket>
  229.       <return>OSD</return>
  230.       <enter>OSD</enter>
  231.       <m>OSD</m>
  232.       <i>Info</i>
  233.       <o>CodecInfo</o>
  234.       <z>AspectRatio</z>
  235.       <t>ShowSubtitles</t>
  236.       <l>NextSubtitle</l>
  237.       <left>StepBack</left>
  238.       <right>StepForward</right>
  239.       <up>BigStepForward</up>
  240.       <down>BigStepBack</down>
  241.       <a>AudioDelay</a>
  242.       <escape>Fullscreen</escape>
  243.       <c>Playlist</c>
  244.       <v>XBMC.ActivateWindow(Teletext)</v>
  245.       <one>AudioDelayMinus</one>
  246.       <two>AudioDelayPlus</two>
  247.     </keyboard>
  248.   </FullscreenVideo>
  249.   <VideoTimeSeek>
  250.     <keyboard>
  251.       <return>Select</return>
  252.       <enter>Select</enter>
  253.     </keyboard>
  254.   </VideoTimeSeek>
  255.   <FullscreenInfo>
  256.     <keyboard>
  257.       <f>FastForward</f>
  258.       <r>Rewind</r>
  259.       <period>StepForward</period>
  260.       <o>CodecInfo</o>
  261.       <i>Back</i>
  262.       <d mod="ctrl">Back</d>
  263.       <m>OSD</m>
  264.     </keyboard>
  265.   </FullscreenInfo>
  266.   <PlayerControls>
  267.     <keyboard>
  268.       <m>Back</m>
  269.     </keyboard>
  270.   </PlayerControls>
  271.   <Visualisation>
  272.     <keyboard>
  273.       <f>FastForward</f>
  274.       <r>Rewind</r>
  275.       <period>SkipNext</period>
  276.       <comma>SkipPrevious</comma>
  277.       <return>ActivateWindow(MusicOSD)</return>
  278.       <enter>ActivateWindow(MusicOSD)</enter>
  279.       <m>ActivateWindow(MusicOSD)</m>
  280.       <i>Info</i>
  281.       <p>ActivateWindow(VisualisationPresetList)</p>
  282.       <v>ActivateWindow(VisualisationSettings)</v>
  283.       <n>ActivateWindow(MusicPlaylist)</n>
  284.       <left>SkipPrevious</left>
  285.       <right>SkipNext</right>
  286.       <up>IncreaseRating</up>
  287.       <down>DecreaseRating</down>      <!--<back>NextPreset</back>!-->
  288.       <o>CodecInfo</o>
  289.       <l>LockPreset</l>
  290.       <escape>FullScreen</escape>
  291.       <g>XBMC.ActivateWindow(PVROSDGuide)</g>
  292.       <c>XBMC.ActivateWindow(PVROSDChannels)</c>
  293.     </keyboard>
  294.   </Visualisation>
  295.   <MusicOSD>
  296.     <keyboard>
  297.       <f>FastForward</f>
  298.       <r>Rewind</r>
  299.       <period>SkipNext</period>
  300.       <comma>SkipPrevious</comma>
  301.       <m>Back</m>
  302.       <i>Info</i>
  303.       <o>CodecInfo</o>
  304.       <p>ActivateWindow(VisualisationPresetList)</p>
  305.       <v>ActivateWindow(VisualisationSettings)</v>
  306.       <n>ActivateWindow(MusicPlaylist)</n>
  307.     </keyboard>
  308.   </MusicOSD>
  309.   <VisualisationSettings>
  310.     <keyboard>
  311.       <f>FastForward</f>
  312.       <r>Rewind</r>
  313.       <period>SkipNext</period>
  314.       <comma>SkipPrevious</comma>
  315.       <m>Back</m>
  316.       <i>Info</i>
  317.       <o>CodecInfo</o>
  318.       <p>ActivateWindow(VisualisationPresetList)</p>
  319.       <v>Back</v>
  320.       <n>ActivateWindow(MusicPlaylist)</n>
  321.     </keyboard>
  322.   </VisualisationSettings>
  323.   <VisualisationPresetList>
  324.     <keyboard>
  325.       <f>FastForward</f>
  326.       <r>Rewind</r>
  327.       <period>SkipNext</period>
  328.       <comma>SkipPrevious</comma>
  329.       <m>Back</m>
  330.       <i>Info</i>
  331.       <o>CodecInfo</o>
  332.       <p>Back</p>
  333.       <v>Back</v>
  334.       <n>ActivateWindow(MusicPlaylist)</n>
  335.     </keyboard>
  336.   </VisualisationPresetList>
  337.   <SlideShow>
  338.     <keyboard>
  339.       <zero>ZoomNormal</zero>
  340.       <one>ZoomLevel1</one>
  341.       <two>ZoomLevel2</two>
  342.       <three>ZoomLevel3</three>
  343.       <four>ZoomLevel4</four>
  344.       <five>ZoomLevel5</five>
  345.       <six>ZoomLevel6</six>
  346.       <seven>ZoomLevel7</seven>
  347.       <eight>ZoomLevel8</eight>
  348.       <nine>ZoomLevel9</nine>
  349.       <i>Info</i>
  350.       <o>CodecInfo</o>
  351.       <period>NextPicture</period>
  352.       <comma>PreviousPicture</comma>
  353.       <plus>ZoomIn</plus>
  354.       <minus>ZoomOut</minus>
  355.       <r>Rotate</r>
  356.     </keyboard>
  357.   </SlideShow>
  358.   <ScreenCalibration>
  359.     <keyboard>
  360.       <return>NextCalibration</return>
  361.       <enter>NextCalibration</enter>
  362.       <d>ResetCalibration</d>
  363.       <r>NextResolution</r>
  364.     </keyboard>
  365.   </ScreenCalibration>
  366.   <GUICalibration>
  367.     <keyboard>
  368.       <return>NextCalibration</return>
  369.       <enter>NextCalibration</enter>
  370.       <d>ResetCalibration</d>
  371.     </keyboard>
  372.   </GUICalibration>
  373.   <VideoOSD>
  374.     <keyboard>
  375.       <m>Back</m>
  376.       <g mod="ctrl">Back</g> <!-- MCE Guide button -->
  377.       <i>Info</i>
  378.       <o>CodecInfo</o>
  379.     </keyboard>
  380.   </VideoOSD>
  381.   <VideoMenu>
  382.     <keyboard>
  383.       <opensquarebracket>BigStepForward</opensquarebracket>
  384.       <closesquarebracket>BigStepBack</closesquarebracket>
  385.       <m>OSD</m>
  386.       <i>Info</i>
  387.       <o>CodecInfo</o>
  388.       <z>AspectRatio</z>
  389.       <t>ShowSubtitles</t>
  390.       <l>NextSubtitle</l>
  391.       <a>AudioDelay</a>
  392.       <escape>Fullscreen</escape>
  393.       <return>Select</return>
  394.       <enter>Select</enter>      <!-- backspace>Fullscreen</backspace -->
  395.     </keyboard>
  396.   </VideoMenu>
  397.   <OSDVideoSettings>
  398.     <keyboard>
  399.       <i>Info</i>
  400.       <o>CodecInfo</o>
  401.     </keyboard>
  402.   </OSDVideoSettings>
  403.   <OSDAudioSettings>
  404.     <keyboard>
  405.       <i>Info</i>
  406.       <o>CodecInfo</o>
  407.     </keyboard>
  408.   </OSDAudioSettings>
  409.   <VideoBookmarks>
  410.     <keyboard>
  411.       <delete>Delete</delete>
  412.     </keyboard>
  413.   </VideoBookmarks>
  414.   <MyVideoLibrary>
  415.     <keyboard>
  416.       <delete>Delete</delete>
  417.       <space>Playlist</space>
  418.       <w>ToggleWatched</w>
  419.     </keyboard>
  420.   </MyVideoLibrary>
  421.   <MyVideoFiles>
  422.     <keyboard>
  423.       <space>Playlist</space>
  424.       <q>Queue</q>
  425.       <w>ToggleWatched</w>
  426.     </keyboard>
  427.   </MyVideoFiles>
  428.   <MyVideoPlaylist>
  429.     <keyboard>
  430.       <space>Back</space>
  431.       <delete>Delete</delete>
  432.       <u>MoveItemUp</u>
  433.       <d>MoveItemDown</d>
  434.     </keyboard>
  435.   </MyVideoPlaylist>
  436.   <MyPictures>
  437.     <keyboard>
  438.       <delete>Delete</delete>
  439.     </keyboard>
  440.   </MyPictures>
  441.   <ContextMenu>
  442.     <keyboard>
  443.       <c>Back</c>
  444.       <menu>Back</menu>
  445.     </keyboard>
  446.   </ContextMenu>
  447.   <Scripts>
  448.     <keyboard>
  449.       <i>info</i>
  450.     </keyboard>
  451.   </Scripts>
  452.   <MusicInformation>
  453.     <keyboard>
  454.       <i>Back</i>
  455.       <d mod="ctrl">Back</d>
  456.     </keyboard>
  457.   </MusicInformation>
  458.   <MovieInformation>
  459.     <keyboard>
  460.       <i>Back</i>
  461.     </keyboard>
  462.   </MovieInformation>
  463.   <PictureInfo>
  464.     <keyboard>
  465.       <period>NextPicture</period>
  466.       <comma>PreviousPicture</comma>
  467.       <i>Back</i>
  468.       <d mod="ctrl">Back</d>
  469.       <o>Back</o>
  470.       <space>Pause</space>
  471.     </keyboard>
  472.   </PictureInfo>
  473.   <Teletext>
  474.     <keyboard>
  475.       <v>Back</v>
  476.     </keyboard>
  477.   </Teletext>
  478.   <Favourites>
  479.     <keyboard>
  480.       <backspace>Close</backspace>
  481.     </keyboard>
  482.   </Favourites>
  483.   <NumericInput>
  484.     <keyboard>
  485.       <backspace>Close</backspace>
  486.     </keyboard>
  487.   </NumericInput>
  488.   <PVROSDChannels>
  489.     <keyboard>
  490.       <backspace>Close</backspace>
  491.       <escape>Close</escape>
  492.       <c>Close</c>
  493.     </keyboard>
  494.   </PVROSDChannels>
  495.   <PVROSDGuide>
  496.     <keyboard>
  497.       <backspace>Close</backspace>
  498.       <escape>Close</escape>
  499.     </keyboard>
  500.   </PVROSDGuide>
  501.   <PVROSDDirector>
  502.     <keyboard>
  503.       <backspace>Close</backspace>
  504.       <escape>Close</escape>
  505.     </keyboard>
  506.   </PVROSDDirector>
  507.   <PVROSDCutter>
  508.     <keyboard>
  509.       <backspace>Close</backspace>
  510.       <escape>Close</escape>
  511.     </keyboard>
  512.   </PVROSDCutter>
  513.   <MyTVSettings>
  514.     <keyboard>
  515.       <backspace>PreviousMenu</backspace>
  516.     </keyboard>
  517.   </MyTVSettings>
  518.   <FileBrowser>
  519.     <keyboard>
  520.       <space>Highlight</space>
  521.     </keyboard>
  522.   </FileBrowser>
  523. </keymap>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement