[maemo-developers] libsdl1.2 problem with headset button keysym

From: Kemal Hadimli disqkk at gmail.com
Date: Sat Jul 21 00:35:15 EEST 2007
Hello,

I have a pygame (and eventually sdl) app that I want to make use of
the headset answer button. But there's a problem:

If I investigated correctly, libsdl1.2 won't pass over the
XF86XK_Phone (0x1008FF6E) keycode. This keycode is generated when the
answer button on the headset mic is pressed.

In the SDL app, you get: "X11: Unknown xsym, sym = 0x1008ff6e" (twice,
once for the keypress and once for the keyrelease) and the event gets
eaten. The error message is generated in
https://stage.maemo.org/svn/maemo/projects/haf/trunk/libsdl1.2/src/video/x11/SDL_x11events.c

I know that even if it's fixed (maybe it is in trunk, I didn't check
the header files) it still won't be out till the next firmware release
(Chinook?) so kinda long way to go. Is there any way to circumvent
this and read the keypress/release event?

I'm also CC'ing the libsdl1.2 package maintainer.


Thanks.
-- 
Kemal

More information about the maemo-developers mailing list