New Patch: Updated instant access/media button support on multimedia keyboards
#1
I have updated the support for media buttons/instant access buttons on so called "multimedia keyboards". (See the patch in the tracker)

As a result people can now use tags, such as, <volume_up> and <next_track> in the keyboard button-to-action map inside the userdata/Keymap.xml file.

To this end, inside the guilib/common/SDLKeyboard.cpp, where the special media/instant access buttons of these keyboards are mapped to vkeys, several missing mappings were updated/added.

Furthermore, the available mappings have been added to xbmc/ButtonTranslator.cpp, so that they may be used as tags in the button-to-action map of a keyboard in the userdata/Keymap.xml file (see above).


Finally, the xbmc/ButtonTranslator.cpp and xbmc/ButtonTranslator.h have been updated to provide a fall back mechanism for keys that have not yet been mapped officially to a vkey. This allows users with keyboards containing new "instant access/media buttons" to map these buttons to actions as well (without the need for patching/recompiling the binary). For example the following two lines have the same meaning:

<launch_mail></launch_mail>
<key id="61620"></key>

The id is the wButtonCode in the code (the internal representation of the buttons, which is based on the vkey).

Files affected by this patch:

userdata/Keymap.xml
guilib/common/SDLKeyboard.cpp
xbmc/ButtonTranslator.h
xbmc/ButtonTranslator.cpp


--
dpy
Reply

Logout Mark Read Team Forum Stats Members Help
New Patch: Updated instant access/media button support on multimedia keyboards0