2015-06-25, 11:45
One more thing.
If I want to add the yellow button to next subtitle and the green button to next language during playback of a movie.
As far as I understand this can be done in two ways?
These ID's can be used with the Container.SetSortMethod(id) function:
35
36
<onclick>Container.SetSortMethod(35)</onclick>
<onclick>Container.SetSortMethod(36)</onclick>
Now what? What is the next step here to get this wokring? What files to I add it to?
or
Action IDs:
NextSubtitle
AudioNextLanguage
Will this be one way to get it done? Create the following in keyboard.xml and place it in the keymaps folder?
<keymap>
<global>
<keyboard>
<alt mod="2">AudioNextLanguage</alt>
</keyboard>
</global>
</keymap>
Next subtitle is a build in feature to the letter L, so I assume that mapping the button to L in harmony is enough here?
Then on harmony I map L and alt+2 to the yellow and green button?
I don`t understand the difference between those two methods. Is the first one for only adding the SE, and the second one for MCE?
Nevermind:
I added two devices. Microsoft-->Kodi and Microsoft-->MCE Keyboard.
Almost every function I wanted were already available with name to easy map to buttons on the first one I added. For NextAudioLanguage I created keyboard.xml and added it that way.
Everything is working now
If I want to add the yellow button to next subtitle and the green button to next language during playback of a movie.
As far as I understand this can be done in two ways?
These ID's can be used with the Container.SetSortMethod(id) function:
35
36
<onclick>Container.SetSortMethod(35)</onclick>
<onclick>Container.SetSortMethod(36)</onclick>
Now what? What is the next step here to get this wokring? What files to I add it to?
or
Action IDs:
NextSubtitle
AudioNextLanguage
Will this be one way to get it done? Create the following in keyboard.xml and place it in the keymaps folder?
<keymap>
<global>
<keyboard>
<alt mod="2">AudioNextLanguage</alt>
</keyboard>
</global>
</keymap>
Next subtitle is a build in feature to the letter L, so I assume that mapping the button to L in harmony is enough here?
Then on harmony I map L and alt+2 to the yellow and green button?
I don`t understand the difference between those two methods. Is the first one for only adding the SE, and the second one for MCE?
Nevermind:
I added two devices. Microsoft-->Kodi and Microsoft-->MCE Keyboard.
Almost every function I wanted were already available with name to easy map to buttons on the first one I added. For NextAudioLanguage I created keyboard.xml and added it that way.
Everything is working now
![Smile Smile](https://forum.kodi.tv/images/smilies/smile.png)