qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Qemu-ppc] Mac OS X on QEMU


From: Anthony Liguori
Subject: Re: [Qemu-devel] [Qemu-ppc] Mac OS X on QEMU
Date: Wed, 10 Jul 2013 18:35:32 -0500
User-agent: Notmuch/0.15.2+202~g0c4b8aa (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu)

Alexander Graf <address@hidden> writes:

> Am 10.07.2013 um 21:54 schrieb Programmingkid <address@hidden>:
>
>> qemu-system-ppc -keyboard-layout-file ./keyboard-layout.txt 
>
> That's exactly what -k does today already, no?

No.  What we send to the guest is a scancode.  This literally
corresponds to "row 4, column 5".  With a good VNC client (like
gtk-vnc), the native GTK UI, or SDL, we're able to read these scan codes
directly from the keyboard and pass them to the guest.

So as long as you're using one of the above, you never have to think
about "-k".

However, a crappy VNC client (like realvnc) can only send symbolic key
symbols.  Literally "the D key".  However, QEMU has no idea what the
stickers are your physical keyboard.  So you have to tell it what the
symbolic key => scancode mapping is via the "-k" option.

Of course, we default to en-us which covers a lot of people.

Now, if for some goofy reason, you wanted to have rules that did:

map "row 4, column 5" => "row 6, column 9"

We would need a new interface for that.  But that's not something QEMU
should do IMHO.  I suspect this thread started because the OP is using a
crappy VNC client or a builtin UI that cannot pass through scan codes.

Regards,

Anthony Liguori

>
> Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]