2012-09-15, 16:03
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:
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:
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?
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?