Kodi Community Forum
Keys reassignment - 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: Keys reassignment (/showthread.php?tid=182013)



Keys reassignment - 03397 - 2014-01-02

I am trying to change a few keys used in xbmc with other but I have difficulties...

I have created the xml file which was placed in /userdata/keymaps with the following entries

<keymap>
<global>
<keyboard>
<pagedown>stepforward</pagedown>
<pageup>stepback</pageup>
<f>fastforward</f>
<r>rewind</r>
<o>stop</o>
<l>audionextlanguage</l>
<m mod="ctrl">showvideomenu</m>
<d mod="ctrl">contextmenu</d>
<s>nextsubtitle</s>
</keyboard>
</global>
</keymap>


I just want to perform the following

O Stop
F Play Forward
R Play Backward
Page Up Previous Chapter
Page Down Next Chapter
L Change Language
S Change Subtitles
Ctrl+M Jump to Movie Menu
Ctrl+D Jump to the top of the menu menu

The only change that work are the f & r buttons. L & S do the same thing i.e. change the subtitles language. L is supposed to chage the audio language.
Please help.


RE: Keys reassignment - warlion - 2014-01-02

F and r are already default you don't need to add that

http://wiki.xbmc.org/index.php?title=Action_IDs

Don't use global for everything S is showdown menu change the global to <FullscreenVideo>
And make sure your spell is correct


RE: Keys reassignment - 03397 - 2014-01-02

(2014-01-02, 20:45)warlion Wrote: F and r are already default you don't need to add that

http://wiki.xbmc.org/index.php?title=Action_IDs

Don't use global for everything S is showdown menu change the global to <FullscreenVideo>
And make sure your spell is correct

Can you please show me an example of the action ids I need? What action ids correspond to the features I need?


RE: Keys reassignment - warlion - 2014-01-02

Ej.


Code:
<keymaps>
      <FullscreenVideo>
             <s>NextSubtitle</s>
             <l>AudioNextLanguage</l>
      </FullscreenVideo>
</keymaps>



RE: Keys reassignment - 03397 - 2014-01-02

(2014-01-02, 21:27)warlion Wrote: Ej.


Code:
<keymaps>
      <FullscreenVideo>
             <s>NextSubtitle</s>
             <l>AudioNextLanguage</l>
      </FullscreenVideo>
</keymaps>

I have used just this one
<keymap>
<FullscreenVideo>
<o>Stop</o>
</FullscreenVideo>
</keymap>

But the video playback still stops with the x button and the o button displays the cpu info/codec.


RE: Keys reassignment - warlion - 2014-01-03

You need to assign the x to something else or you will keep the original configuration

Go to c:/program files (86)/xbmc/system/keyboard.xml
and copy that file to your userdata and edit all you need


RE: Keys reassignment - 03397 - 2014-01-04

(2014-01-03, 00:07)warlion Wrote: You need to assign the x to something else or you will keep the original configuration

Go to c:/program files (86)/xbmc/system/keyboard.xml
and copy that file to your userdata and edit all you need

I have managed to to the key assignment but only by editing the keyboard.xml which is in the xbmc folder and not by adding keyboard.xml in the user/appdata and so on folder.
All the thread were suggesting to add a new keyboard.xml file. This did not work. I do not know what I was doing wrong.


RE: Keys reassignment - warlion - 2014-01-04

No you don't need to edit the original file you miss a few places copy that file you edit to your userdata and restore the original in the system folder of xbmc


RE: Keys reassignment - 03397 - 2014-01-04

(2014-01-04, 20:36)warlion Wrote: No you don't need to edit the original file you miss a few places copy that file you edit to your userdata and restore the original in the system folder of xbmc

I have put the original in the original place and the edited one in

C:\Users\username\AppData\Roaming\XBMC\userdata\keymaps

It does not work. Do have to put the edited one somewhere else??


RE: Keys reassignment - elusien - 2014-01-05

(2014-01-02, 23:37)03397 Wrote:
(2014-01-02, 21:27)warlion Wrote: Ej.


Code:
<keymaps>
      <FullscreenVideo>
             <s>NextSubtitle</s>
             <l>AudioNextLanguage</l>
      </FullscreenVideo>
</keymaps>

I have used just this one
<keymap>
<FullscreenVideo>
<o>Stop</o>
</FullscreenVideo>
</keymap>

But the video playback still stops with the x button and the o button displays the cpu info/codec.

You have missed out a level of XML (<keyboard>), you should have

Code:
<keymap>
      <FullscreenVideo>
           <keyboard>
             <o>Stop</o>
           </keyboard>
      </FullscreenVideo>
</keymap>