"Internet" keyboard, "multimedia" keys

I am using SDL on Linux to create a home entertainment box (jukebox,
etc). I want my application to be able to respond to the special
"multimedia" buttons on my wireless keyboard. I discovered that even if
I set up the X11 keysyms (using the special XFree86 names that are
available in an XFree86 system’s XKeysymDB file), SDL doesn’t process
the special keysyms.

I’ve come up with a patch to add the keysyms to SDL; I’ve used the names
that are available X11/XF86keysym.h. Are the SDL developers interested
in using such a patch? This being my first SDL modification, I’m not
sure if the names or the manner in which I coded the change is generic
enough for the cross-platform style of SDL. Any suggestions suggestions
for enhancements of this patch are welcome.

–gilbert
-------------- next part --------------
A non-text attachment was scrubbed…
Name: sdl-xf86keysyms.diff
Type: text/x-patch
Size: 7610 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030119/f72b5e09/attachment.bin

I am using SDL on Linux to create a home entertainment box (jukebox,
etc). I want my application to be able to respond to the special
"multimedia" buttons on my wireless keyboard. I discovered that even if
I set up the X11 keysyms (using the special XFree86 names that are
available in an XFree86 system’s XKeysymDB file), SDL doesn’t process
the special keysyms.

I’ve come up with a patch to add the keysyms to SDL; I’ve used the names
that are available X11/XF86keysym.h. Are the SDL developers interested
in using such a patch? This being my first SDL modification, I’m not
sure if the names or the manner in which I coded the change is generic
enough for the cross-platform style of SDL. Any suggestions suggestions
for enhancements of this patch are welcome.

It actually look pretty good. It’s completely non-standard, and unfortunately
there is currently no standard at all for this kind of specification. Feel
free to use and distribute the patch, but for now it probably won’t go into
core SDL.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment