[Ubuntu] Keymap.xml XBMC

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
hjertis Offline
Junior Member
Posts: 3
Joined: Dec 2009
Reputation: 0
Post: #1
Hello everyone.

I've just bought me a Fractal Design Shape remote for my HTPC. And ofc I want it to work correctly.

I know it uses modifiers for some functions, so I'm in the process of upgrading to a nightly build.

I've gotten the remote to work with lirc and I've gotten everything I need to set it up from using irw in the terminal window.

Now for the part I just can't understand, how do I configure my "keymap.xml" file? I haven't got a clue what I should do.

Can anyone help me?

Here's what I've added to the Lircmap.xml file
Code:
    <remote device="devinput">
        <power>KEY_F4</power> <!-- mod LEFTALT -->
        <record>KEY_R</record> <!-- mod LEFTCTRL -->
        <play>KEY_P</play> <!-- mod LEFTCTRL + LEFTSHIFT -->
        <reverse>KEY_B</reverse> <!-- mod LEFTCTRL + LEFTSHIFT -->
        <pause>KEY_P</pause> <!-- mod LEFTCTRL -->
        <stop>KEY_STOPCD</stop>
        <forward>KEY_F</forward> <!-- mod LEFTCTRL - LEFTSHIFT -->
        <left>KEY_LEFT</left>
        <right>KEY_RIGHT</right>
        <up>KEY_UP</up>
        <down>KEY_DOWN</down>
        <select>KEY_ENTER</select>
        <pageplus>KEY_PAGEUP</pageplus>
        <pageminus>KEY_PAGEDOWN</pageminus>
        <back>KEY_BACKSPACE</back>
        <menu>KEY_M</menu> <!-- mod LEFTCTRL + LEFTSHIFT -->
        <title>KEY_O</title> <!-- mod LEFTCTRL -->
        <info>KEY_T</info> <!-- mod LEFTCTRL -->
        <skipplus>KEY_F</skipplus> <!-- mod LEFTCTRL -->
        <skipminus>KEY_B</skipminus> <!-- mod LEFTCTRL -->
        <display>KEY_T</display> <!-- mod LEFTCTRL + LEFTSHIFT -->
        <start>KEY_ENTER</start> <!-- mod LEFTALT + LEFTMETA -->
        <volumeplus>KEY_F10</volumeplus>
        <volumeminus>KEY_F9</volumeminus>
        <mute>KEY_F8</mute>
        <myvideo>KEY_E</myvideo> <!-- mod LEFTCTRL -->
        <mymusic>KEY_I</mymusic> <!-- mod LEFTCTRL -->
        <mypictures>KEY_M</mypictures> <!-- mod LEFTCTRL -->
        <mytv>KEY_HOMEPAGE</mytv>
        <mytv>KEY_G</mytv> <!-- mod LEFTCTRL -->
        <one>KEY_1</one>
        <two>KEY_2</two>
        <three>KEY_3</three>
        <four>KEY_4</four>
        <five>KEY_5</five>
        <six>KEY_6</six>
        <seven>KEY_7</seven>
        <eight>KEY_8</eight>
        <nine>KEY_9</nine>
        <zero>KEY_0</zero>
    </remote>

As I said, I need to use modifiers as you can see in my <!-- --> tags...
All help would be very appreciated.

edit:

Could it be this simple maybe...
Code:
...
<remote>
<play mod="ctrl,shift">KEY_P</play>
...
</remote>
....

This should work in all the new nightly builds if I'm right?

source: http://trac.xbmc.org/ticket/7442
(This post was last modified: 2010-07-06 13:52 by hjertis.)
find quote