DigitalAutoPilot Posted May 6, 2012 Report Share Posted May 6, 2012 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 Quote Link to comment Share on other sites More sharing options...
jason Posted May 6, 2012 Report Share Posted May 6, 2012 I don't think so. However, I do think you can probably map 'update library' to a keyboard shortcut. Then use flirc and link a remote button to that new keyboard shortcut. See the following thread: http://forum.xbmc.org/showthread.php?tid=118316 Let us know if you have any luck. Quote Link to comment Share on other sites More sharing options...
digitalb0y Posted July 28, 2012 Report Share Posted July 28, 2012 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> 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.