21 Aug 2020 - The wiki is undergoing a major cleanup. If you arrived here from a search engine and cannot find the page, please use the wiki search instead (top right corner of page)
More info can be found on the forum
You can redefine all keys of the remote and all buttons on the gamepad as you like, by editing the keymapping which is defined in XBMC\UserData\keymap.xml on your Xbox.
1 Changing the keymapping
There is one global keymap and several window-specific keymaps.
XBMC falls back to the global map when the window-specific map hasn't bound the key being pressed.
The format of keymap.xml is as follows:
<Global> <gamepad> <A>Select</A> ... </gamepad>
<remote> <select>Select</select> ... </remote>
<keyboard> <enter>Select</enter> ... </keyboard>
<universalremote> <obc25>XBMC.ActivateWindow(MyMusic)</obc25> ... </universalremote> </Global>
<Home> ... </Home> ...
As you can see, it's divided into a <Global> section, and a number of window sections (such as <Home>).
A list of the available window names can be seen here Window IDs. The WINDOW can also be a custom window formatted as <windowId#> (e. g. <window1113>).
Each of these sections has entries for Gamepad, Remote, Keyboard, and Universal Remotes.
The format for mapping a particular key under one of these device types is as follows: <xml>
The important information is of course the keyname and action.
2 Available actions
An up to date list of the available actions can be found in the source code of XBMC in ButtonTranslator.cpp, where the TranslateActionString() function does the work.
In addition to the following actions, you can also use the Built-in functions available to FTP, Webserver, skins, keymap and to python in XBMC.
|Left||Move left off a control.|
|Right||Move right off a control.|
|Up||Move up off a control.|
|Down||Move down off a control.|
|Select||Select a button, or an item from a list of thumb view.|
|PageUp||Scroll up on page in a list, thumb, or text view.|
|PageDown||Scroll down on page in a list, thumb, or text view.|
|Highlight||Highlight an item in a list or thumb view.|
|ParentDir||Go up a folder to the parent folder.|
|PreviousMenu||Go back to the previous menu screen.|
|Info||Show the information about the currently highlighted item, or currently playing item.|
|Pause||Pause the currently playing item.|
|Stop||Stop the currently playing item.|
|SkipNext||Skip to the next item in a playlist.|
|SkipPrevious||Skip to the previous item in a playlist.|
|FullScreen||Toggles fullscreen modes (either visualisation or video playback)|
|AspectRatio||Toggle through the various aspect ratio modes (Normal is the preferred option).|
|StepForward||Step forward 1% in the movie.|
|StepBack||Step back 1% in the movie.|
|BigStepForward||Step forward 10% in the movie.|
|BigStepBack||Step back 10% in the movie.|
|SmallStepBack||Step back 7 seconds in the current video.|
|OSD||Toggles the OSD while playing an item.|
|ShowVideoMenu||Go to the DVD Video menu when playing a DVD.|
|ShowSubtitles||Toggles whether subtitles are shown or not.|
|NextSubtitle||Change to the next subtitle language, if there is more than one.|
|CodecInfo||Show codec information about the currently playing item (during video or visualisation playback)|
|NextPicture||Move to the next picture in a slideshow.|
|PreviousPicture||Move to the previous picture in a slideshow.|
|ZoomOut||Used in picture or slideshow to zoom out of the current image.|
|ZoomIn||Used in picture or slideshow to zoom in to the current image.|
|Queue||Queue the item to the current playlist|
|Playlist||Toggle to playlist view from My Music or My Videos|
|ZoomNormal||Normal (fullscreen) viewing in My Pictures|
|ZoomLevel1||Zoom to 120% in My Pictures|
|ZoomLevel2||Zoom to 150% in My Pictures|
|ZoomLevel3||Zoom to 200% in My Pictures|
|ZoomLevel4||Zoom to 280% in My Pictures|
|ZoomLevel5||Zoom to 400% in My Pictures|
|ZoomLevel6||Zoom to 600% in My Pictures|
|ZoomLevel7||Zoom to 900% in My Pictures|
|ZoomLevel8||Zoom to 1350% in My Pictures|
|ZoomLevel9||Zoom to 2000% in My Pictures|
|NextCalibration||Used in Video + GUI calibration|
|ResetCalibration||Used in Video + GUI calibration|
|AnalogMove||Move in the calibration screens, and while zoomed in My Pictures.|
|Rotate||Rotate a picture in My Pictures|
|Close||Used to close a dialog|
|SubtitleDelayMinus||Decrease the delay amount of subtitles (use if subtitles are displaying too late)|
|SubtitleDelayPlus||Increase the delay amount of subtitles (use if subtitles are displaying too early)|
|AudioDelayMinus||Decrease the delay amount of audio (use if audio is being heard too early)|
|AudioDelayPlus||Increase the delay amount of audio (use if audio is being heard too late)|
|AudioNextLanguage||Change to the next audio track in a video with multiple audio tracks.|
|NextResolution||Used in Video calibration|
|Number0||Used to input the number 0|
|Number1||Used to input the number 1|
|Number2||Used to input the number 2|
|Number3||Used to input the number 3|
|Number4||Used to input the number 4|
|Number5||Used to input the number 5|
|Number6||Used to input the number 6|
|Number7||Used to input the number 7|
|Number8||Used to input the number 8|
|Number9||Used to input the number 9|
|FastForward||Toggle the fastforward speed between normal play, 2x, 4x, 8x, 16x, and 32x.|
|Rewind||Toggle the rewind speed between normal play, 2x, 4x, 8x, 16x, and 32x.|
|Play||Play the selected item (or folder of items), or unpause a paused item.|
|Delete||Used in My Files to delete a file.|
|Copy||Used in My Files to copy a file.|
|Move||Used in My Files to move a file.|
|Rename||Used in My Files to rename a file.|
|Screenshot||Take a screenshot of the current screen.|
|Power||Shutdown and power off|
|VolumeUp||Increase the volume of playback.|
|VolumeDown||Decrease the volume of playback.|
|Mute||Mute the volume.|
|BackSpace||Used in the virtual keyboards to delete one letter.|
|ScrollUp||Variable speed scroll up for analog keys (stick or triggers)|
|ScrollDown||Variable speed scroll down for analog keys (stick or triggers)|
|AnalogFastForward||Variable speed fast forward for analog keys (stick or triggers)|
|AnalogRewind||Variable speed rewind for analog keys (stick or triggers)|
|AnalogSeekForward||Variable speed seeking for analog keys (stick or triggers)|
|AnalogSeekBack||Variable speed seeking for analog keys (stick or triggers)|
|MoveItemUp||Used to rearrange playlists|
|MoveItemDown||Used to rearrange playlists|
|ContextMenu||Pops up a contextual menu|
|Shift||Used in Virtual Keyboard to switch to upper or lower case letters|
|Symbols||Used in Virtual Keyboard to switch to or from symbols mode|
|CursorLeft||Used in Virtual Keyboard to move the current cursor point to the left|
|CursorRight||Used in Virtual Keyboard to move the current cursor point to the right|
|ShowTime||Used to show the current play time in music + video playback|
|ShowPreset||Shows the current visualisation preset (milkdrop/spectrum)|
|PresetList||Pops up the visualisation preset list (milkdrop/spectrum)|
|NextPreset||Next visualisation preset|
|PreviousPreset||Previous visualisation preset|
|LockPreset||Lock the current visualisation preset|
|RandomPreset||Switch to a new random preset|
3 Gamepad Buttons
An up to date list of the available actions can be found in the source code of XBMC in ButtonTranslator.cpp, where the TranslateGamepadString() function does the work.
4 Remote Buttons
An up to date list of the available actions can be found in the source code of XBMC in ButtonTranslator.cpp, where the TranslateRemoteString() function does the work.
5 Universal Remotes
To map keys from other remotes using the RC5 infrared remote protocol, you may add <universalremote> blocks to the keymap.
In this case, the tags used are <obc#> where # is the original button code (OBC) of the key.
You set it up by adding a <universalremote> block to the <window> or <global> section: <xml>
<universalremote> <obc45>Stop</obc45> </universalremote>
- Note - ensure that the universalremote section is not added 'within' remote - it can appear before. Otherwise it will not recognise and produce errors in the logfile.
XBMC can be put in a test mode to display the code number read when you press a button on your remote by setting <displayremotecodes> to true in AdvancedSettings.xml.
The Xbox uses standard RCA DVD infrared codes, so if you have a universal remote with a built in device database you can use RCA DVD codes for example to power down the Xbox.