Help with remote.xml
#1
I am trying to map 2 keys on my remote in XBMC, I have created a remote.xml file in the userdata/keymaps folder which looks like this:

Code:
<keymap>
    <FullScreenVideo>
        <remote>
            <leftshift>SubtitleDelayPlus</leftshift>
            <rightshift>SubtitleDelayMinus</rightshift>
        </remote>
    </FullScreenVideo>
</keymap>

But I can't find the right names of the god damn keys!
I turned on debug logging, and get this output when in fullscreenvideo mode:

Code:
15:46:22 T:140630434211648   DEBUG: LIRC: Update - NEW at 7508716:193 0 KEY_CHANNELDOWN devinput (KEY_CHANNELDOWN)
15:46:22 T:140630434211648   DEBUG: OnKey: rightshift (d3) pressed, action is PageDown
15:46:22 T:140630434211648   DEBUG: LIRC: Update - NEW at 7509050:193 0 KEY_CHANNELDOWN_UP devinput (KEY_CHANNELDOWN_UP)
15:46:22 T:140630434211648   DEBUG: LIRC: Update - NEW at 7509092:192 0 KEY_CHANNELUP devinput (KEY_CHANNELUP)
15:46:22 T:140630434211648   DEBUG: OnKey: leftshift (d2) pressed, action is PageUp
15:46:23 T:140630434211648   DEBUG: LIRC: Update - NEW at 7509342:192 0 KEY_CHANNELUP_UP devinput (KEY_CHANNELUP_UP)

What are the names of my keys? As you can see, I've tried rightshift and leftshift. I've also tried PageUp and PageDown. I think I've tried CHANNELUP and CHANNELDOWN too (can't really remember, fiddled with this last week).
What am I doing wrong? I know this can work, I had it all set up like this before my HTPC crashed.

EDIT:
Okay I took a look inside the official remote.xml and found this part:

<pageplus>PageUp</pageplus>
<pageminus>PageDown</pageminus>

Since the debug is saying that it is trying to exec PageUp and PageDown, I suppose it must be those two buttons called "pageplus" and "pageminus" that I am looking for. Gonna test it in a minute.
Even if it works, I would like to know why the debug log doesn't say anything about pageplus and pageminus? How are you supposed to find out the names of the buttons then?

EDIT2: It worked. Yey! Anyway, still, how do you find out the names of the buttons that you want to map?
Reply
#2
Keys such as Shift, Ctrl and Alt are modifiers and can't be mapped per se. However, you can map key sequences that include these modifiers, such as:
Code:
<f1 mod="ctrl">
<one mod="alt">
<f2 mod="ctrl,alt">

However, with the Shift key, it appears this key can only be used in conjunction with another modifier key. So,
Code:
<e mod="shift,alt">
works, but
Code:
<e mod="shift">
doesn't.

(2012-09-15, 16:03)toxicious Wrote: EDIT2: It worked. Yey! Anyway, still, how do you find out the names of the buttons that you want to map?
  • List of XBMC keynames
  • Or enable debug logging, press key(s) on keyboard/remote, exit XBMC, look in the debug log (wiki) to see how XBMC identified the keypress(es)

Reply
#3
Sorry, but I think that you misunderstood my problem.
I am trying to re-map my remote, not my keyboard.

The list you linked is for keyboard.xml, not remote.xml. Also, I did post the debug log as you can see, but I can't read the correct names from it. The correct was pageplus and pageminus, the debug log don't mention those.
Reply

Logout Mark Read Team Forum Stats Members Help
Help with remote.xml0