SDL and GTk: keycodes differents

Hi!

I’m making a GTK interface for a SDL program (GnomeBoyAdvance [1]).
I get keycodes with GTK to configure the keys binding.
The problem is that the GTK and SDL keycodes seem to be differents for a
lot of keys. For exemple the directional arrows, numpad, …
I’m searching a way (a rules?) to convert GTK keycodes to SDL ones.

I’m using pygame and pygtk but I don’t think that that made a
difference.

Thanks a lot

    Guillaume

[1] http://developer.berlios.de/projects/gnomeboyadvance/--
Guillaume Desmottes <@Guillaume_Desmottes>
Jabber
GPG 1024D/711E31B1 | 1B5A 1BA8 11AA F0F1 2169 E28A AC55 8671 711E 31B1

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040818/a171fc24/attachment.pgp