MCE Keymapping question

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Legion79 Offline
Junior Member
Posts: 20
Joined: Feb 2009
Reputation: 0
Post: #1
Hi, I've been working at what is seemingly a simple problem for hours, and I'm sure I'm doing something stupid here...

All I want to do is map a button on my MCE remote (green) to toggle between showing and hiding the movies I've watched.

I've configured every other keypress without a problem, using eventghost. The problem I've got here is that showing/hiding watched movies is not a default action it seems.

What I've managed to do is:
-find out what action I need: Sendclick(14)
edit my keyboard.xml and map this action to a keypress: <j>Sendclick(14)<j>

This works find when I press the j key on my keyboard, but I can't get this working for my MCE remote. There's no obvious way to do it in Eventghost, so I tried using keyboard.xml again, example below. This does nothing at all.

Code:
<!--Template XBMC keyboard file-->
<keymap>
  <global>
    <keyboard>
    </keyboard>
    <remote>
      <green>Sendclick(14)</green>
    </remote>

  </global>
</keymap>
[/code]

Can anyone please take a look at let me know where I'm going wrong? I'm sure it's obvious, but I really can't see it!

Thanks
find quote
Legion79 Offline
Junior Member
Posts: 20
Joined: Feb 2009
Reputation: 0
Post: #2
I've read through many guides, including this one here: http://wiki.xbmc.org/index.php?title=HOW...yboard.xml

I totally understand the example, and I know how to modify that to my needs (I can change the example so a key I choose (e.g. 'j') performs the action I want (e.g. Sendclick(14)), but what I can't work out is how then to map it back to my remote (so when I press the green button on the remote that translates to a 'j' keypress, which then sends a sendclick action).

Again, I'm sure I'm missing a fundamental concept, but after hours of reading I can't figure out what!

Any help would be appreciated.
find quote
bosel Offline
Junior Member
Posts: 49
Joined: Jun 2010
Reputation: 0
Post: #3
I've tried this and it works for me. (<red>SendClick(14)</red>)

Are you editing remote.xml?
find quote
Legion79 Offline
Junior Member
Posts: 20
Joined: Feb 2009
Reputation: 0
Post: #4
Erm... there's a remote.xml?! I've been editing keyboard.xml!
find quote
Legion79 Offline
Junior Member
Posts: 20
Joined: Feb 2009
Reputation: 0
Post: #5
Hmmm... still not working. I've created a remote.xml in the same directory as keyboard.xml and this is the contents:


<!--Template XBMC keyboard file-->
<keymap>
<global>
<keyboard>
<yellow>Sendclick(14)</yellow>
</keyboard>
<remote>
<green>Sendclick(14)</green>
</remote>

</global>
</keymap>

I included the sendclick command with both the remote and keyboard tags as I wasn't sure which would work, and neither does. Any advice?
find quote
Reginald Offline
Fan
Posts: 310
Joined: Oct 2007
Reputation: 1
Location: Michigan, USA
Post: #6
It should still be keyboard.xml just denoted (as above) as <remote> or <keyboard>, are you putting the file in the correct path? Are you talking about the green button or the orb (windows) button, does Event Ghost register the green key press? If you are using Event Ghost, you will want to have it send j not green, XBMC won't know what green is.


Try this:

Code:
<keymap>
  <global>
    <keybaord>
      <j>Sendclick(14)</j>
    <keyboard>
  </global>
</keymap>

Have EG translate green to j. That SHOULD work.

Hope that helps!

[Image: all-thin-fanart.jpg]
Setup:
HTPC: Acer Revo 3610 (openELEC 3.0.2) with Aeon Nox (4)
NAS: unRAID 5rc12a on an Intel 3GHz Core2Duo with 4GB of RAM and 5 2TB WD EARS Green Drives
Running: SickBeard, CouchPotato v2, Headphones, Maraschino, Plex and SimplePlugins
find quote
bosel Offline
Junior Member
Posts: 49
Joined: Jun 2010
Reputation: 0
Post: #7
Remove all .xml files from the path, grab the default keymap (remote.xml) from:
https://github.com/xbmc/xbmc/tree/Eden/system/keymaps
and change: <green>SendClick(14)</green> only, restart and try again.

If that still doesn't work you should provide a bit more information, such as:

-are you on linux or something else?
-os/xbmc version
-in which location are you placing the .xml
etc.
find quote
Reginald Offline
Fan
Posts: 310
Joined: Oct 2007
Reputation: 1
Location: Michigan, USA
Post: #8
My guess is he is on Windows as he is using Event Ghost, Event Ghost reads the incoming signal from the remote and then send a command or key to XBMC that it recognizes.

Could you put your EG config somewhere so I can take a look at it?

Thanks,
Reg

[Image: all-thin-fanart.jpg]
Setup:
HTPC: Acer Revo 3610 (openELEC 3.0.2) with Aeon Nox (4)
NAS: unRAID 5rc12a on an Intel 3GHz Core2Duo with 4GB of RAM and 5 2TB WD EARS Green Drives
Running: SickBeard, CouchPotato v2, Headphones, Maraschino, Plex and SimplePlugins
find quote