Kodi Community Forum

Full Version: Addon keymaps
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all

I am currently in the process of developing an addon. However, I need to completely redefine the keymap while this addon is running.

It is intended to be a "standby" addon for my RaspBMC media centre, running when the power button on my remote is pressed then discarding all button presses except power which would "wake" it back up. In my case it would mainly be used for toggling my SCART status pin, and activating the "Home" screen when waking.

The easiest way I could see to do this would be to add to the keymap xml a section for my addon, defining all keys to some "null" action except the power button. I am having trouble finding a way to define a keymap for an addon, though. Is this possible? If not, what would be the best way to do this?

Thanks
Anyone?