Steven Smith wrote:
[...]
>> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
>> +++ b/tools/xenfb/keymapping.c Sat Sep 02 15:19:25 2006 -0400
>> @@ -0,0 +1,141 @@
>> +#include <stdint.h>
>> +#include <gdk/gdkkeysyms.h>
>> +#include <linux/input.h>
>> +
>> +uint32_t gdk_linux_mapping[0x10000] = {
>> + [GDK_a] = KEY_A,
> This is kind of ugly. Is there any chance it could be autogenerated?
> Also, where did 0x10000 come from?
>
> Also, depending on GTK just for the keymap table is a real pain. Or
> is it already required for libvncserver?
>
For the VNC part, as it depends on libvncserver, it should use
/usr/include/rfb/keysym.h:
+uint32_t gdk_linux_mapping[0x10000] = {
+ [XK_a] = KEY_A,
For the SDL part, I'm sorry to repeat it should use scancode instead of symbol
id ...
Regards,
Laurent
--
Laurent.Vivier@xxxxxxxx
Bull, Architect of an Open World (TM)
+----- "Any sufficiently advanced technology is ----+
| indistinguishable from magic." - Arthur C. Clarke |
signature.asc
Description: OpenPGP digital signature
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|