User:Ned Scott/Sandbox: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
(Replaced content with "= test 1 = Words words words = test 2 = More words words words = test 3 = Even more words words words <headertabs />")
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<?xml version="1.0" encoding="UTF-8"?>
= test 1 =
<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
Words words words
<!-- The <global> section is a fall through - they will only be used if the button is not          -->
<!-- used in the current window's section.  Note that there is only handling                      -->
<!-- for a single action per button at this stage.                                                -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox      -->
<!-- gamepads.                                                                                    -->


<!-- The format is:                      -->
= test 2 =
<!--    <device>                        -->
More words words words
<!--      <button>action</button>        -->
<!--    </device>                        -->


<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
= test 3 =
<!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
Even more words words words
<!-- You set it up by adding a <universalremote> block to the window or <global> section:      -->
<!--    <universalremote>            -->
<!--      <obc45>Stop</obc45>        -->
<!--    </universalremote>            -->


<!-- Note that the action can be a built-in function.                -->
<headertabs />
<!--  eg <B>ActivateWindow(MyMusic)</B>                        -->
<!-- would automatically go to My Music on the press of the B button. -->
 
<!-- Joysticks / Gamepads:                                                                    -->
<!--  See the sample PS3 controller configuration below for the format.                      -->
<!--                                                                                          -->
<!--  Joystick Name:                                                                          -->
<!--  Do 'cat /proc/bus/input/devices' or see your xbmc log file  to find the names of      -->
<!--  detected joysticks. The name used in the configuration should match the detected name. -->
<!--                                                                                          -->
<!--  Button Ids:                                                                            -->
<!--  'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear  -->
<!--  in xbmc.log when they are pressed. Use your log to map custom buttons to actions.      -->
<!--                                                                                          -->
<!--  Axis Ids / Analog Controls                                                              -->
<!--  Coming soon.                                                                          -->
<!--                                                                                          -->
<!--  Long presses                                                                            -->
<!--  A limitation is that if a single press is mapped in a section, a global "longpress"    -->
<!--  will be ignored. The workaround is to duplicate the long mapping in the section.      -->
<keymap>
  <global>
    <keyboard>
      <p>Play</p>
      <q>Queue</q>
      <f>FastForward</f>
      <r>Rewind</r>
      <y>SwitchPlayer</y>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <left mod="ctrl">analogseekback</left>
      <right mod="ctrl">analogseekforward</right>
      <pageup>PageUp</pageup>
      <pagedown>PageDown</pagedown>
      <return>Select</return>
      <return mod="longpress">ContextMenu</return>
      <enter>Select</enter>
      <enter mod="longpress">ContextMenu</enter>
      <backspace>Back</backspace>
      <backspace mod="longpress">ActivateWindow(Home)</backspace>
      <browser_back>Back</browser_back>
      <browser_back mod="longpress">ActivateWindow(Home)</browser_back>
      <key id='65446'>Back</key>
      <m>Menu</m>
      <m mod="ctrl">ActivateWindow(PlayerControls)</m>
      <s>ActivateWindow(shutdownmenu)</s>
      <escape>PreviousMenu</escape>
      <i>Info</i>
      <menu>ContextMenu</menu>
      <menu mod="longpress">Menu</menu>
      <c>ContextMenu</c>
      <c mod="longpress">Menu</c>
      <space>Pause</space>
      <x>Stop</x>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <tab>FullScreen</tab>
      <printscreen>Screenshot</printscreen>
      <s mod="ctrl">Screenshot</s>
      <minus>VolumeDown</minus>
      <plus>VolumeUp</plus>
      <equals>VolumeUp</equals>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
      <numpadminus>VolumeDown</numpadminus>
      <numpadplus>VolumeUp</numpadplus>
      <numpadzero>Number0</numpadzero>
      <numpadone>Number1</numpadone>
      <numpadtwo>Number2</numpadtwo>
      <numpadthree>Number3</numpadthree>
      <numpadfour>Number4</numpadfour>
      <numpadfive>Number5</numpadfive>
      <numpadsix>Number6</numpadsix>
      <numpadseven>Number7</numpadseven>
      <numpadeight>Number8</numpadeight>
      <numpadnine>Number9</numpadnine>
      <backslash>ToggleFullScreen</backslash>
      <home>FirstPage</home>
      <end>LastPage</end>
      <power>ActivateWindow(shutdownmenu)</power>
      <sleep>ActivateWindow(shutdownmenu)</sleep>
      <!-- PVR windows -->
      <e>ActivateWindow(TVGuide)</e>
      <h>ActivateWindow(TVChannels)</h>
      <j>ActivateWindow(RadioChannels)</j>
      <k>ActivateWindow(TVRecordings)</k>
      <b>ActivateWindow(TVTimers)</b>
      <!-- Multimedia keyboard keys -->
      <browser_back>Back</browser_back>
      <browser_forward/>
      <browser_refresh/>
      <browser_stop/>
      <browser_search/>
      <browser_favorites>ActivateWindow(Favourites)</browser_favorites>
      <browser_home>ActivateWindow(Home)</browser_home>
      <volume_mute>Mute</volume_mute>
      <volume_down>VolumeDown</volume_down>
      <volume_up>VolumeUp</volume_up>
      <next_track>SkipNext</next_track>
      <prev_track>SkipPrevious</prev_track>
      <stop>Stop</stop>
      <play_pause>PlayPause</play_pause>
      <fastforward>FastForward</fastforward>
      <rewind>Rewind</rewind>
      <record/>
      <launch_mail></launch_mail>
      <launch_media_select>ActivateWindow(MyMusic)</launch_media_select>
      <launch_app1_pc_icon>ActivateWindow(MyPrograms)</launch_app1_pc_icon>
      <launch_app2_pc_icon>ActivateWindow(MyPrograms)</launch_app2_pc_icon>
      <launch_file_browser/>
      <launch_media_center/>
      <!-- ****************************************************** -->
      <!-- MS Media Center keyboard shortcuts sent by MCE remotes -->
      <!-- See http://msdn.microsoft.com/en-us/library/bb189249.aspx -->
      <p mod="ctrl,shift">Play</p>        <!-- Play -->
      <s mod="ctrl,shift">Stop</s>        <!-- Stop -->
      <p mod="ctrl">Pause</p>            <!-- Pause -->
      <f mod="ctrl,shift">FastForward</f> <!-- Fwd -->
      <b mod="ctrl,shift">Rewind</b>      <!-- Rew -->
      <f mod="ctrl">SkipNext</f>          <!-- Skip -->
      <b mod="ctrl">SkipPrevious</b>      <!-- Replay -->
      <d mod="ctrl">Info</d>              <!-- MCE Details -->
      <f10>VolumeUp</f10>                <!-- MCE Vol up -->
      <f9>VolumeDown</f9>                <!-- MCE Vol down -->
      <f8>Mute</f8>                      <!-- MCE mute -->
      <g mod="ctrl">ActivateWindow(TVGuide)</g>  <!-- MCE Guide -->
      <m mod="ctrl">ActivateWindow(music)</m>    <!-- MCE My music -->
      <i mod="ctrl">ActivateWindow(pictures)</i> <!-- MCE My pictures -->
      <e mod="ctrl">ActivateWindow(video)</e>    <!-- MCE videos -->
      <m mod="ctrl,shift">PlayerControl(ShowVideoMenu)</m>        <!-- MCE DVD menu -->
      <o mod="ctrl">ActivateWindow(TVRecordings)</o>  <!-- MCE Recorded TV -->
      <t mod="ctrl">ActivateWindow(TVChannels)</t>  <!-- MCE Live TV  -->
      <t mod="ctrl,shift">ActivateWindow(TVChannels)</t>  <!-- MCE My TV -->
      <a mod="ctrl">ActivateWindow(RadioChannels)</a>  <!-- MCE My Radio -->
      <!-- MCE keypresses without an obvious use in XBMC -->
      <u mod="ctrl">Notification(MCEKeypress, DVD subtitle, 3)</u>
      <a mod="ctrl,shift">Notification(MCEKeypress, DVD audio, 3)</a>
      <k mod="ctrl,shift">ReloadKeymaps</k>
      <d mod="ctrl,shift">ToggleDebug</d>
      <r mod="ctrl,shift">ToggleDirtyRegionVisualization</r>
    </keyboard>
  </global>
  <LoginScreen>
    <keyboard>
      <end mod="ctrl">ShutDown()</end>
    </keyboard>
  </LoginScreen>
  <Home>
    <keyboard>
      <i>info</i>
      <end mod="ctrl">ShutDown()</end>
      <backspace mod="longpress">ActivateWindow(ShutdownMenu)</backspace>
    </keyboard>
  </Home>
  <VirtualKeyboard>
    <keyboard>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <return>Select</return>
      <enter>Select</enter>
      <left mod="longpress">Backspace</left>
      <right mod="longpress">Number0</right> <!-- first entry creates a space -->
      <up mod="longpress">Shift</up>
      <down mod="longpress">Symbols</down>
      <backspace>Backspace</backspace>
      <browser_back>Backspace</browser_back>
      <browser_back mod="longpress">PreviousMenu</browser_back>
    </keyboard>
  </VirtualKeyboard>
  <MyTVChannels>
    <keyboard>
      <m mod="ctrl">Move</m>
      <h>PreviousMenu</h>
    </keyboard>
  </MyTVChannels>
  <MyTVRecordings>
    <keyboard>
      <delete>Delete</delete>
      <r>Rename</r>
      <k>PreviousMenu</k>
    </keyboard>
  </MyTVRecordings>
  <MyTVTimers>
    <keyboard>
      <delete>Delete</delete>
      <r>Rename</r>
      <b>PreviousMenu</b>
    </keyboard>
  </MyTVTimers>
  <MyRadioChannels>
    <keyboard>
      <m mod="ctrl">Move</m>
      <j>PreviousMenu</j>
    </keyboard>
  </MyRadioChannels>
  <MyRadioRecordings>
    <keyboard>
      <delete>Delete</delete>
      <r>Rename</r>
    </keyboard>
  </MyRadioRecordings>
  <MyRadioTimers>
    <keyboard>
      <delete>Delete</delete>
      <r>Rename</r>
    </keyboard>
  </MyRadioTimers>
  <TVGuide>
    <keyboard>
      <e>PreviousMenu</e>
    </keyboard>
  </TVGuide>
  <MyFiles>
    <keyboard>
      <space>Highlight</space>
      <delete>Delete</delete>
      <m>Move</m>
      <r>Rename</r>
      <play_pause mod="longpress">Highlight</play_pause>
    </keyboard>
  </MyFiles>
  <MyMusicPlaylist>
    <keyboard>
      <n>Back</n>
      <delete>Delete</delete>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
    </keyboard>
  </MyMusicPlaylist>
  <MyMusicPlaylistEditor>
    <keyboard>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
      <delete>Delete</delete>
    </keyboard>
  </MyMusicPlaylistEditor>
  <MyMusicFiles>
    <keyboard>
      <n>Playlist</n>
      <q>Queue</q>
      <delete>Delete</delete>
    </keyboard>
  </MyMusicFiles>
  <MyMusicLibrary>
    <keyboard>
      <n>Playlist</n>
      <q>Queue</q>
    </keyboard>
  </MyMusicLibrary>
  <FullscreenVideo>
    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>StepForward</period>
      <comma>StepBack</comma>
      <backspace>Fullscreen</backspace>
      <backspace mod="longpress">Stop</backspace>
      <browser_back>Fullscreen</browser_back>
      <browser_back mod="longpress">Stop</browser_back>
      <quote>Seek(-7)</quote> <!-- Replaces smallstepback -->
      <opensquarebracket>BigStepForward</opensquarebracket>
      <closesquarebracket>BigStepBack</closesquarebracket>
      <return>OSD</return>
      <enter>OSD</enter>
      <return mod="longpress">PlayPause</return>
      <enter mod="longpress">PlayPause</enter>
      <m>OSD</m>
      <menu>OSD</menu>
      <i>Info</i>
      <o>CodecInfo</o>
      <z>AspectRatio</z>
      <t>ShowSubtitles</t>
      <t mod="ctrl">SubtitleAlign</t>
      <l>NextSubtitle</l>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>ChapterOrBigStepForward</up>
      <down>ChapterOrBigStepBack</down>
      <a>AudioDelay</a>
      <escape>Fullscreen</escape>
      <c>Playlist</c>
      <v>ActivateWindow(Teletext)</v>
      <up mod="ctrl">SubtitleShiftUp</up>
      <down mod="ctrl">SubtitleShiftDown</down>
      <pageup>SkipNext</pageup>
      <pagedown>SkipPrevious</pagedown>
    </keyboard>
  </FullscreenVideo>
  <VideoTimeSeek>
    <keyboard>
      <return>Select</return>
      <enter>Select</enter>
    </keyboard>
  </VideoTimeSeek>
  <FullscreenInfo>
    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>StepForward</period>
      <o>CodecInfo</o>
      <i>Back</i>
      <d mod="ctrl">Back</d>
      <m>OSD</m>
      <menu>OSD</menu>
    </keyboard>
  </FullscreenInfo>
  <PlayerControls>
    <keyboard>
      <m mod="ctrl">Back</m>
    </keyboard>
  </PlayerControls>
  <Visualisation>
    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <pageup>IncreaseRating</pageup>
      <pagedown>DecreaseRating</pagedown>
      <backspace>Fullscreen</backspace>
      <backspace mod="longpress">Stop</backspace>
      <browser_back>Fullscreen</browser_back>
      <browser_back mod="longpress">Stop</browser_back>
      <return>OSD</return>
      <enter>OSD</enter>
      <m>OSD</m>
      <menu>OSD</menu>
      <i>Info</i>
      <p>ActivateWindow(VisualisationPresetList)</p>
      <v>Addon.Default.OpenSettings(xbmc.player.musicviz)</v>
      <n>ActivateWindow(MusicPlaylist)</n>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>SkipNext</up>
      <down>SkipPrevious</down>
      <o>CodecInfo</o>
      <l>LockPreset</l>
      <escape>FullScreen</escape>
      <g>ActivateWindow(PVROSDGuide)</g>
      <c>ActivateWindow(PVROSDChannels)</c>
    </keyboard>
  </Visualisation>
  <MusicOSD>
    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <m>Back</m>
      <menu>Back</menu>
      <i>Info</i>
      <o>CodecInfo</o>
      <p>ActivateWindow(VisualisationPresetList)</p>
      <v>Addon.Default.OpenSettings(xbmc.player.musicviz)</v>
      <n>ActivateWindow(MusicPlaylist)</n>
    </keyboard>
  </MusicOSD>
  <VisualisationSettings>
    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <m>Back</m>
      <i>Info</i>
      <o>CodecInfo</o>
      <p>ActivateWindow(VisualisationPresetList)</p>
      <v>Back</v>
      <n>ActivateWindow(MusicPlaylist)</n>
    </keyboard>
  </VisualisationSettings>
  <VisualisationPresetList>
    <keyboard>
      <f>FastForward</f>
      <r>Rewind</r>
      <period>SkipNext</period>
      <comma>SkipPrevious</comma>
      <m>Back</m>
      <i>Info</i>
      <o>CodecInfo</o>
      <p>Back</p>
      <v>Back</v>
      <n>ActivateWindow(MusicPlaylist)</n>
    </keyboard>
  </VisualisationPresetList>
  <SlideShow>
    <keyboard>
      <zero>ZoomNormal</zero>
      <one>ZoomLevel1</one>
      <two>ZoomLevel2</two>
      <three>ZoomLevel3</three>
      <four>ZoomLevel4</four>
      <five>ZoomLevel5</five>
      <six>ZoomLevel6</six>
      <seven>ZoomLevel7</seven>
      <eight>ZoomLevel8</eight>
      <nine>ZoomLevel9</nine>
      <i>Info</i>
      <o>CodecInfo</o>
      <period>NextPicture</period>
      <comma>PreviousPicture</comma>
      <plus>ZoomIn</plus>
      <minus>ZoomOut</minus>
      <return>Rotate</return>
      <enter>Rotate</enter>
      <r>Rotate</r>
    </keyboard>
  </SlideShow>
  <ScreenCalibration>
    <keyboard>
      <return>NextCalibration</return>
      <enter>NextCalibration</enter>
      <d>ResetCalibration</d>
      <r>NextResolution</r>
    </keyboard>
  </ScreenCalibration>
  <GUICalibration>
    <keyboard>
      <return>NextCalibration</return>
      <enter>NextCalibration</enter>
      <d>ResetCalibration</d>
    </keyboard>
  </GUICalibration>
  <VideoOSD>
    <keyboard>
      <m>Back</m>
      <menu>Back</menu>
      <g mod="ctrl">Back</g> <!-- MCE Guide button -->
      <i>Info</i>
      <o>CodecInfo</o>
    </keyboard>
  </VideoOSD>
  <VideoMenu>
    <keyboard>
      <opensquarebracket>BigStepForward</opensquarebracket>
      <closesquarebracket>BigStepBack</closesquarebracket>
      <m>OSD</m>
      <menu>OSD</menu>
      <i>Info</i>
      <o>CodecInfo</o>
      <z>AspectRatio</z>
      <t>ShowSubtitles</t>
      <l>NextSubtitle</l>
      <a>AudioDelay</a>
      <escape>Fullscreen</escape>
      <return>Select</return>
      <enter>Select</enter>      <!-- backspace>Fullscreen</backspace -->
      <pageup>SkipNext</pageup>
      <pagedown>SkipPrevious</pagedown>
    </keyboard>
  </VideoMenu>
  <OSDVideoSettings>
    <keyboard>
      <i>Info</i>
      <o>CodecInfo</o>
    </keyboard>
  </OSDVideoSettings>
  <OSDAudioSettings>
    <keyboard>
      <i>Info</i>
      <o>CodecInfo</o>
    </keyboard>
  </OSDAudioSettings>
  <VideoBookmarks>
    <keyboard>
      <delete>Delete</delete>
    </keyboard>
  </VideoBookmarks>
  <MyVideoLibrary>
    <keyboard>
      <delete>Delete</delete>
      <n>Playlist</n>
      <w>ToggleWatched</w>
    </keyboard>
  </MyVideoLibrary>
  <MyVideoFiles>
    <keyboard>
      <n>Playlist</n>
      <q>Queue</q>
      <w>ToggleWatched</w>
    </keyboard>
  </MyVideoFiles>
  <MyVideoPlaylist>
    <keyboard>
      <n>Back</n>
      <delete>Delete</delete>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
    </keyboard>
  </MyVideoPlaylist>
  <MyPictures>
    <keyboard>
      <delete>Delete</delete>
    </keyboard>
  </MyPictures>
  <ContextMenu>
    <keyboard>
      <c>Back</c>
      <menu>Back</menu>
    </keyboard>
  </ContextMenu>
  <Scripts>
    <keyboard>
      <i>info</i>
    </keyboard>
  </Scripts>
  <MusicInformation>
    <keyboard>
      <i>Back</i>
      <d mod="ctrl">Back</d>
    </keyboard>
  </MusicInformation>
  <MovieInformation>
    <keyboard>
      <i>Back</i>
    </keyboard>
  </MovieInformation>
  <PictureInfo>
    <keyboard>
      <period>NextPicture</period>
      <comma>PreviousPicture</comma>
      <i>Back</i>
      <d mod="ctrl">Back</d>
      <o>Back</o>
      <space>Pause</space>
    </keyboard>
  </PictureInfo>
  <Teletext>
    <keyboard>
      <v>Back</v>
    </keyboard>
  </Teletext>
  <Favourites>
    <keyboard>
      <backspace>Close</backspace>
      <browser_back>Close</browser_back>
      <u>MoveItemUp</u>
      <d>MoveItemDown</d>
    </keyboard>
  </Favourites>
  <NumericInput>
    <keyboard>
      <backspace>Close</backspace>
      <browser_back>Close</browser_back>
    </keyboard>
  </NumericInput>
  <FullscreenLiveTV>
    <keyboard>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>Up</up>
      <down>Down</down>
      <return>OSD</return>
      <enter>OSD</enter>
      <return mod="longpress">ActivateWindow(PVROSDChannels)</return>
      <enter mod="longpress">ActivateWindow(PVROSDChannels)</enter>
      <pageup>ChannelUp</pageup>
      <pagedown>ChannelDown</pagedown>
    </keyboard>
  </FullscreenLiveTV>
  <FullscreenRadio>
    <keyboard>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>Up</up>
      <down>Down</down>
      <return>OSD</return>
      <enter>OSD</enter>
      <return mod="longpress">ActivateWindow(PVROSDChannels)</return>
      <enter mod="longpress">ActivateWindow(PVROSDChannels)</enter>
      <pageup>ChannelUp</pageup>
      <pagedown>ChannelDown</pagedown>
    </keyboard>
  </FullscreenRadio>
  <PVROSDChannels>
    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
      <browser_back>Close</browser_back>
      <c>Close</c>
    </keyboard>
  </PVROSDChannels>
  <PVROSDGuide>
    <keyboard>
      <backspace>Close</backspace>
      <escape>Close</escape>
      <browser_back>Close</browser_back>
    </keyboard>
  </PVROSDGuide>
  <MyTVSettings>
    <keyboard>
      <backspace>PreviousMenu</backspace>
      <browser_back>PreviousMenu</browser_back>
    </keyboard>
  </MyTVSettings>
  <FileBrowser>
    <keyboard>
      <space>Highlight</space>
    </keyboard>
  </FileBrowser>
  <ShutdownMenu>
    <keyboard>
      <s>Back</s>
    </keyboard>
  </ShutdownMenu>
  <AddonInformation>
    <keyboard>
      <i>Back</i>
    </keyboard>
  </AddonInformation>
  <AddonSettings>
    <keyboard>
      <delete>Delete</delete>
    </keyboard>
  </AddonSettings>
  <Addon>
    <keyboard>
      <f1>Red</f1>
      <f2>Green</f2>
      <f3>Yellow</f3>
      <f4>Blue</f4>
    </keyboard>
  </Addon>
</keymap>

Latest revision as of 01:48, 1 September 2018

[edit]

Words words words

[edit]

More words words words

[edit]

Even more words words words