Kodi Community Forum
Keymap.xml - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: Keymap.xml (/showthread.php?tid=35275)



Keymap.xml - zeuss-axis - 2008-07-28

I'm having some trouble with Keymap.xml: it seems as though it is being overridden by something else.

I've tried changing my remote button functions by copying the corresponding functions from the global/keyboard section to the global/remote section (for example, <i>Info</i> --> <title>Info</title>). I've always had success doing this on the Xbox, but this is my first attempt on a PC.

When my changes weren't working, I tried the following:

- copied Keymap.xml from Application Data/XBMC/userdata over the versions in Program Files/XBMC/Userdata and in the REMOTEXBMC directory
- blanked out some obvious buttons (<up>, etc) to prove that its an issue with the file being read, rather than my coding of options.

I'm thinking it'd be best to start fresh with the latest build (I'm still on 13985) and to not use REMOTEXBMC: is there another XBMC remote driver for windows available?

Thanks!


- gabestover - 2008-07-28

I'm not sure when the change was made, but i know with 14125 at least, the Keymap.xml is now in the system folder. Try moving your edited Keymap.xml into the system folder, replacing the original - hopefully it'll fix your problems.


- jmarshall - 2008-07-28

Yes, keymap.xml is in system.

No, you should not touch it.

Any overriding you do should be done in <USERDATA>/Keymap.xml - a fresh file that you create.

Please let us know if there is any issues with it (once you are certain it's not a user-generated problem).

Cheers,
Jonathan


- zeuss-axis - 2008-07-28

After dicking around with the file in the userdata folder for far too long, I'm going to start fresh this evening and see where that takes me...for now it seems there's a ghost in the machine, as more and more of my buttons are randomly deciding when to work. I'll post back when my fresh install works fine, as I'm sure it will :-)


- h3llsp4wn - 2008-07-28

... had similar effects - keep in mind that keymap.xml is stored in the xbmc system folder - replace it there and you´re done ... Cool


- jmarshall - 2008-07-28

DO NOT TOUCH KEYMAP.XML IN SYSTEM

You should only add whatever you need to a new keymap.xml file in userdata.


- zeuss-axis - 2008-07-29

jmarshall Wrote:DO NOT TOUCH KEYMAP.XML IN SYSTEM

You should only add whatever you need to a new keymap.xml file in userdata.

I don't intend to modify the Keymap in system, but like a toddler prying the safety covers off a light socket, you've got me curious: how does the file in the system folder work with those in the userdata folders?

...and for that matter, what's the story with having the userdata folder at both the Program Files and Application Data locations? Platform dependant?


- jmarshall - 2008-07-29

Keymap.xml in userdata overrides and/or adds to keymap.xml in system.

eg add a key to global section just via:

Code:
<keymap>
  <global>
    <remote>
      <!-- add your key here -->
      <!-- override a key here -->
    </remote>
  </global>
</keymap>

That's all.

And there's no reason there's a userdata in program files other than we have to copy it from somewhere if the other one doesn't exist.

Cheers,
Jonathan


- zeuss-axis - 2008-07-29

Thanks for your time on that; curiosity has me on my 7th life already :-)