Posts: 1
Joined: Feb 2017
Reputation:
0
2017-02-27, 12:04
Hey, i am new at skinning in kodi, but i wonder if it is possible to put a custom keymap in a keyboard.xml or like inside the skin, so people don't need to download both the skin and the keymap and know where to place it.
Thanks in advance
Posts: 1,332
Joined: Jan 2016
Reputation:
54
I thought to begin with I would need a key map.... but as you start skinning yo will realize that you can get everything done with buttons and the already available key layout...
plus everyone is already used to the way the Kodi works now do you really want to change it and then someone will have to learn it?
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
Add-ons that change keymaps are not allowed.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 808
Joined: Dec 2014
Reputation:
51
badaas
Skilled Skinner
Posts: 808
There is an addon to edit keymap.xml in kodi repo, 'Keymap Editor'.
You could maybe ask dev if there is a way to incorporate a keyscript for it to run on users permission.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
I would need to see the code for the guide I have a idea but it depends how the guide is layed out.
Posts: 142
Joined: May 2017
Reputation:
2
It's just the standard guide code from Estuary. (I've made other changes for my Mousetuary skin but the guide is unchanged so far)
Another idea I will try to implement is a set of up/down/left/right mouse-hover buttons, in the style of WMC. They could easily be done in the skin. In other places, Kodi skins often auto-scroll lists when the mouse is hovered near the top or bottom, so the guide could be made to do that too.
HDHomerun Quatro, RaspPi/TVHeadend, NUC/Win10/Kodi, Mousetuary skin, Mouse on couch!
Posts: 1,332
Joined: Jan 2016
Reputation:
54
yeah if your going to use the mouse just add a overlay button on focus control move ..... I will have to look into the skin and look at the code before I can recommend anything else.
Posts: 36
Joined: May 2017
Reputation:
5
cizzz
Junior Member
Posts: 36
2017-05-10, 09:27
(This post was last modified: 2017-05-10, 09:34 by cizzz.)
I think you can add an additional xml-file in the keymaps folder that installs with the skin.
All xxxx.xml files in that folder get loaded.
Kodi 20.1 with Aeon Nox Silvo,
Nvidia shield Pro 9.1.1 with Android 11.
Posts: 142
Joined: May 2017
Reputation:
2
Is there a canonical way to install this sort of thing? At present, new skins get sideloaded by just copying/unzipping one directory into the addons directory and enabling it in Kodi. Would it be OK for the skin to do a copy-on-first-use to the userdata/keymaps directory? Or is it better to explicitly require the user to copy it as a separate step?
HDHomerun Quatro, RaspPi/TVHeadend, NUC/Win10/Kodi, Mousetuary skin, Mouse on couch!
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
It is not acceptable for add-ons to change keymaps as I understand the rules.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 36
Joined: May 2017
Reputation:
5
cizzz
Junior Member
Posts: 36
2017-05-11, 14:00
(This post was last modified: 2017-05-11, 14:11 by cizzz.)
E.g. "SF" is adding a separate keymap xml file for adding a quick launch "G" key.
Edit: it seems naming add-ons is not appreciated, I changed my previous message a bit.
Kodi 20.1 with Aeon Nox Silvo,
Nvidia shield Pro 9.1.1 with Android 11.