Jump to content
Flirc Forums

Mapping FUNCTIONS to keypress


Recommended Posts

Is there a way to map XBMC functions to keypresses?

The specific function I'm wanting is UpdateLibrary(database,[path]) ...

I would like to press a key on my remote (and have FLIRC see it) and have the XBMC Library update itself for new content.

This particular function does not have a pre-defined keyboard key.

Thanks

Link to comment
Share on other sites

  • 2 months later...

Sorry to resurrect such an old thread, but I was looking for something else and found this, and wanted to say that this is actually REALLY easy to do. From your userdata folder, go to keymaps/keyboard.xml (create the file if you don't already have it there, and add the update function to any key that isn't already used by XBMC. In my map below, I have my video library updated using the U key, and then I mapped U to the remote button for updating the video library using the flirc software. In my map, ctrl_U does the music library.


<keymap>

  <global>

    <keyboard>

	  <h mod="ctrl">ActivateWindow(Home)</h>

	  <f3>ActivateWindow(Favourites)</f3>

	  <f4>XBMC.ShutDown()</f4>

	  <f5>XBMC.ActivateWindow(MyPrograms)</f5>

	  <u>UpdateLibrary(video)</u>

	  <u mod="ctrl">UpdateLibrary(music)</u>

    </keyboard>

  </global>

</keymap>

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...