2014-03-27, 03:37
(2014-03-22, 07:52)miappa Wrote: The default (system) remote.xml is located in /home/pi/.xbmc-current/xbmc-bin/share/xbmc/system/keymaps
Remember though, .xbmc-current is a symlink to the active build so I don´t recommend editing/using that as a custom keymap as it will switch back to defaut when switching build, but good to know if you want to use it as a template.
Create remote.xml and put it in the folder keymaps in your user data: /home/pi/.xbmc/userdata/keymaps/remote.xml
This will override the default actions.
The following will use smallstepback when pushing back in fullscreenvideo:
Code:<keymap>
<FullscreenVideo>
<remote>
<back>SmallStepBack</back>
</remote>
</FullscreenVideo>
</keymap>
Just as an example of more things you can do, here is mine remote.xml:
The keyboard part was just a test if it was possible in remote.xml and it was. You can also use <remote> and <button id="xxxx">.Code:<keymap>
<global>
<remote>
<blue>XBMC.ActivateWindow(Favourites)</blue>
<red>info</red>
<yellow>XBMC.ActivateWindow(Home)</yellow>
</remote>
<keyboard>
<key id="252">XBMC.RunScript("script.raspbmc.settings")</key>
</keyboard>
</global>
<FullscreenVideo>
<remote>
<zero>PlayerControl(seekpercentage(99))</zero>
<one>PlayerControl(seekpercentage(10))</one>
<two>PlayerControl(seekpercentage(20))</two>
<three>PlayerControl(seekpercentage(30))</three>
<four>PlayerControl(seekpercentage(40))</four>
<five>PlayerControl(seekpercentage(50))</five>
<six>PlayerControl(seekpercentage(60))</six>
<seven>PlayerControl(seekpercentage(70))</seven>
<eight>PlayerControl(seekpercentage(80))</eight>
<nine>PlayerControl(seekpercentage(90))</nine>
<back>SmallStepBack</back>
</remote>
</FullscreenVideo>
</keymap>
To find out which id a button has (or to see if the button is used by XBMC), turn on debug logging and look for "OnKey: xxxx pressed, action is yyyy".
Edit:
Another new feature in Gotham is up and down in fullscreenvideo which now is using ChapterOrBigStepForward/ChapterOrBigStepBack which is the same as BigStepForward/BigStepBack in Frodo.
But in Gotham BigStepForward/BigStepBack will not use chapters even if they exists, so if you don´t like chapters and want 10min steps always you can remap up and down to BigStepForward/BigStepBack.
Thanks for this, it works perfectly!