Kodi Community Forum
Problem with custom keyboard.xml - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
---- Thread: Problem with custom keyboard.xml (/showthread.php?tid=195930)



Problem with custom keyboard.xml - 03397 - 2014-05-23

I have created this custom keyboard.xml which was copied in C:\Users\Sysadmin\AppData\Roaming\XBMC\userdata\keymaps.
The think is that it has never worked, it keeps getting the keyboard definitions from the xbmc directory original file.
The keyboard.xml is loaded just ok.
When I press "o" for example which in my xml is the stop it displays the Codecinfo which is the shortcut in the original keyboard.xml.
All the logs are below.

Any help will be really appreciated.

xbmc.log
-------------

11:38:38 T:12884 NOTICE: special://xbmc/ is mapped to: C:\Program Files (x86)\XBMC
11:38:38 T:12884 NOTICE: special://xbmcbin/ is mapped to: C:\Program Files (x86)\XBMC
11:38:38 T:12884 NOTICE: special://masterprofile/ is mapped to: C:\Users\Sysadmin\AppData\Roaming\XBMC\userdata
11:38:38 T:12884 NOTICE: special://home/ is mapped to: C:\Users\Sysadmin\AppData\Roaming\XBMC\
11:38:38 T:12884 NOTICE: special://temp/ is mapped to: C:\Users\Sysadmin\AppData\Roaming\XBMC\cache
11:38:38 T:12884 NOTICE: The executable running is: C:\Program Files (x86)\XBMC\XBMC.exe

11:38:38 T:12884 INFO: Loading special://xbmc/system/keymaps/keyboard.xml
11:38:38 T:12884 INFO: Loading special://xbmc/system/keymaps/mouse.xml
11:38:38 T:12884 INFO: Loading special://xbmc/system/keymaps/remote.xml
11:38:38 T:12884 INFO: Loading special://xbmc/system/keymaps/touchscreen.xml
11:38:38 T:12884 INFO: Loading special://masterprofile/keymaps/keyboard.xml
11:38:38 T:12884 INFO: Loading special://profile/keymaps/keyboard.xml
11:38:38 T:12884 INFO: Loading special://xbmc/system/IRSSmap.xml
11:38:38 T:12884 INFO: * Adding remote mapping for device 'Microsoft MCE'
11:38:38 T:12884 INFO: * Adding remote mapping for device 'Abstract'
11:38:38 T:12884 DEBUG: CButtonTranslator::Load - no userdata IRSSmap.xml found, skipping
11:38:38 T:12884 INFO: GUI format 764x394, Display Windowed

11:39:42 T:12884 DEBUG: Keyboard: scancode: 0x18, sym: 0x006f, unicode: 0x006f, modifier: 0x0
11:39:42 T:12884 DEBUG: CApplication::OnKey: o (0xf04f) pressed, action is CodecInfo
11:39:43 T:12884 DEBUG: Keyboard: scancode: 0x18, sym: 0x006f, unicode: 0x006f, modifier: 0x0
11:39:43 T:12884 DEBUG: CApplication::OnKey: o (0xf04f) pressed, action is CodecInfo





keyboard.xml
--------------------
<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
<!-- 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: -->
<!-- <device> -->
<!-- <button>action</button> -->
<!-- </device> -->

<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
<!-- 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: -->
<!-- <universalremote> -->
<!-- <obc45>Stop</obc45> -->
<!-- </universalremote> -->

<!-- Note that the action can be a built-in function. -->
<!-- eg <B>XBMC.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. -->
<keymap>
<global>
<keyboard>
<s mod="ctrl,alt">ActivateWindow(shutdownmenu)</s>
<d mod="ctrl">ContextMenu</d>
<o>Stop</o>
</keyboard>
</global>
<FullscreenVideo>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
<s>NextSubtitle</s>
<up>BigStepForward</up>
<down>BigStepBack</down>
<d mod="ctrl">Playlist</d>
<pageup>SkipPrevious</pageup>
<pagedown>SkipNext</pagedown>
</keyboard>
</FullscreenVideo>
<FullscreenInfo>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
<d mod="ctrl,alt">Back</d>
</keyboard>
</FullscreenInfo>
<Visualisation>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
<s>LockPreset</s>
<d mod="ctrl">XBMC.ActivateWindow(PVROSDChannels)</d>
</keyboard>
</Visualisation>
<MusicOSD>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
</keyboard>
</MusicOSD>
<VisualisationSettings>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
</keyboard>
</VisualisationSettings>
<VisualisationPresetList>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
</keyboard>
</VisualisationPresetList>
<SlideShow>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
</keyboard>
</SlideShow>
<VideoOSD>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
</keyboard>
</VideoOSD>
<VideoMenu>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
<s>NextSubtitle</s>
<pageup>SkipPrevious</pageup>
<pagedown>SkipNext</pagedown>
</keyboard>
</VideoMenu>
<OSDVideoSettings>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
</keyboard>
</OSDVideoSettings>
<OSDAudioSettings>
<keyboard>
<o mod="ctrl,alt">CodecInfo</o>
</keyboard>
</OSDAudioSettings>
<ContextMenu>
<keyboard>
<d mod="ctrl">Back</d>
</keyboard>
</ContextMenu>
<MusicInformation>
<keyboard>
<d mod="ctrl,alt">Back</d>
</keyboard>
</MusicInformation>
<PictureInfo>
<keyboard>
<d mod="ctrl,alt">Back</d>
</keyboard>
</PictureInfo>
<PVROSDChannels>
<keyboard>
<d mod="ctrl">Close</d>
</keyboard>
</PVROSDChannels>
<PVROSDGuide>
<keyboard>
<backspace>Close</backspace>
<escape>Close</escape>
</keyboard>
</PVROSDGuide>
<ShutdownMenu>
<keyboard>
<s mod="ctrl,alt">Back</s>
</keyboard>
</ShutdownMenu>
</keymap>


RE: Problem with custom keyboard.xml - 03397 - 2014-05-23

I forgot to tell you...If I copy my custom keyboard.xml in the xbmc installation directory C:\Program Files (x86)\XBMC\system\keymaps it works just fine.


This forum uses Lukasz Tkacz MyBB addons.