2011-02-15, 13:53
Hi, I'm in the process of configuring my remote buttons, and have been successful in mapping them to existing XBMC commands. However, I am having some trouble mapping to custom commands I define myself.
For example, in my /usr/share/xbmc/system/Lircmap.xml I can have:
and this works as expected - the eject key performs the XBMC 'start' command (start is just a command I had not used elsewhere in my lircmap.xml).
However, if I change this to:
the button no longer performs any function.
Originally, I had the definition of the 'eject' command in the user-specific ~/.xbmc/userdata/keymaps/keymap.xml, which looked something like:
When that didn't work, I moved the definition to the /usr/share/xbmc/system/keymaps/remote.xml file:
When this still had no effect, I tried using a 'simpler' command:
I cannot seem to get custom commands to work. From what I have read, I would have thought this would work - obviously I was mistaken .
Any help would be appreciated.
EDIT: I rebooted the machine after each change before testing to see if the change worked.
For example, in my /usr/share/xbmc/system/Lircmap.xml I can have:
Code:
<start>Eject</start>
However, if I change this to:
Code:
<eject>Eject</eject>
Originally, I had the definition of the 'eject' command in the user-specific ~/.xbmc/userdata/keymaps/keymap.xml, which looked something like:
Code:
<keymap>
<global>
<remote>
<eject>XBMC.EjectTray()</eject>
</remote>
</global>
</keymap>
When that didn't work, I moved the definition to the /usr/share/xbmc/system/keymaps/remote.xml file:
Code:
<keymap>
<global>
<remote>
<eject>XBMC.EjectTray()</eject>
... existing commands ...
When this still had no effect, I tried using a 'simpler' command:
Code:
<keymap>
<global>
<remote>
<eject>Select</eject>
... existing commands ...
I cannot seem to get custom commands to work. From what I have read, I would have thought this would work - obviously I was mistaken .
Any help would be appreciated.
EDIT: I rebooted the machine after each change before testing to see if the change worked.