2009-02-28, 23:44
Hi,
I'm trying to map the 3 following actions to get them directly available on my keyboard: ShowSubtitles (e), NextSubtitle (d) and AudioNextLanguage (v).
I created a file $HOME/.xbmc/userdata/keymap.xml and put in it:
<keymap>
<video>
<keyboard>
<e>ShowSubtitles</e>
<d>NextSubtitle</d>
<v>AudioNextLanguage</v>
</keyboard>
</video>
</keymap>
But that didn't work...
That seems confirmed by the messages in the log:
INFO: load keymapping
INFO: Loading special://xbmc/system/Keymap.xml
DEBUG: CButtonTranslator::Load - no userdata keymap found, skipping
So, I corrected that one with renaming keymap.xml to Keymap.xml
But without any more success. In the log, when I try to hit my keys (e, d, and v), I see something like:
DEBUG: SDLKeyboard: scancode: 26, sym: 101, unicode: 101, modifier: 0
DEBUG: OnKey: 61509 pressed, action is 0
DEBUG: SDLKeyboard: scancode: 40, sym: 100, unicode: 100, modifier: 0
DEBUG: OnKey: 61508 pressed, action is 0
DEBUG: SDLKeyboard: scancode: 55, sym: 118, unicode: 118, modifier: 0
DEBUG: OnKey: 61526 pressed, action is 0
My keys does not seems to be correctly mapped (action is 0)...
Can someone points me where I'm missing something?
I tried replacing the letters by the "OnKey" or "scancode" values I see in the log with no success either...
For information:
letter / onkey value / scancode value
e / 61509 / 26
d / 61508 / 40
v / 61526 / 55
Thank you for any help you could give
Typhoe
Note: I relied on the following wiki pages:
Keymap.xml : http://wiki.xbmc.org/?title=Keymap.xml
Window_IDs : http://wiki.xbmc.org/?title=Window_IDs
I'm trying to map the 3 following actions to get them directly available on my keyboard: ShowSubtitles (e), NextSubtitle (d) and AudioNextLanguage (v).
I created a file $HOME/.xbmc/userdata/keymap.xml and put in it:
<keymap>
<video>
<keyboard>
<e>ShowSubtitles</e>
<d>NextSubtitle</d>
<v>AudioNextLanguage</v>
</keyboard>
</video>
</keymap>
But that didn't work...
That seems confirmed by the messages in the log:
INFO: load keymapping
INFO: Loading special://xbmc/system/Keymap.xml
DEBUG: CButtonTranslator::Load - no userdata keymap found, skipping
So, I corrected that one with renaming keymap.xml to Keymap.xml
But without any more success. In the log, when I try to hit my keys (e, d, and v), I see something like:
DEBUG: SDLKeyboard: scancode: 26, sym: 101, unicode: 101, modifier: 0
DEBUG: OnKey: 61509 pressed, action is 0
DEBUG: SDLKeyboard: scancode: 40, sym: 100, unicode: 100, modifier: 0
DEBUG: OnKey: 61508 pressed, action is 0
DEBUG: SDLKeyboard: scancode: 55, sym: 118, unicode: 118, modifier: 0
DEBUG: OnKey: 61526 pressed, action is 0
My keys does not seems to be correctly mapped (action is 0)...
Can someone points me where I'm missing something?
I tried replacing the letters by the "OnKey" or "scancode" values I see in the log with no success either...
For information:
letter / onkey value / scancode value
e / 61509 / 26
d / 61508 / 40
v / 61526 / 55
Thank you for any help you could give
Typhoe
Note: I relied on the following wiki pages:
Keymap.xml : http://wiki.xbmc.org/?title=Keymap.xml
Window_IDs : http://wiki.xbmc.org/?title=Window_IDs