* [Qemu-devel] [PATCH] SDL: Fix dead keys
@ 2008-04-12 19:30 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-04-12 19:30 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
Hello,
On a lot of keyboards (e.g. french, finnish, ...), there are dead keys,
i.e. they don't output text alone. Qemu's sdl.c always enable unicode
mode, so that these keys don't actually produce a keycode, and the
result is that these keys don't work at all in the guest. The attached
patch fixes that by enabling/disabling unicode mode as needed.
Samuel
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 530 bytes --]
Index: sdl.c
===================================================================
--- sdl.c (r�vision 4173)
+++ sdl.c (copie de travail)
@@ -352,6 +352,7 @@
}
vga_hw_update();
+ SDL_EnableUNICODE(!is_graphic_console());
while (SDL_PollEvent(ev)) {
switch (ev->type) {
@@ -640,7 +641,6 @@
sdl_resize(ds, 640, 400);
sdl_update_caption();
SDL_EnableKeyRepeat(250, 50);
- SDL_EnableUNICODE(1);
gui_grab = 0;
sdl_cursor_hidden = SDL_CreateCursor(&data, &data, 8, 1, 0, 0);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-12 19:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-12 19:30 [Qemu-devel] [PATCH] SDL: Fix dead keys Samuel Thibault
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.