From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] Paravirt framebuffer backend tools [2/5] Date: Sun, 10 Sep 2006 09:05:54 -0400 Message-ID: <45040DB2.2070302@cs.utexas.edu> References: <20060904090150.GC4812@cam.ac.uk> <44FC224D.3090300@bull.net> <20060906091505.GD3257@cam.ac.uk> <44FEB3DE.5070502@bull.net> <20060906171006.GA5306@cam.ac.uk> <44FFCAC0.6060809@bull.net> <20060907083848.GA3078@cam.ac.uk> <45016F8E.1030300@cs.utexas.edu> <20060910104021.GC1874@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060910104021.GC1874@cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Steven Smith Cc: xen-devel , Laurent Vivier , Markus Armbruster , iap10@cl.cam.ac.uk, sos22@srcf.ucam.org, Jeremy Katz List-Id: xen-devel@lists.xenproject.org Steven Smith wrote: >>> First: I now agree with you that scancodes are a better choice than >>> keysyms, and that I was wrong initially. >>> >> The problem with scancodes is that you cannot always get scancodes from >> the viewer. You can get scancodes from SDL but you can only get keysyms >> from VNC. We would have to map VNC keysyms (which are just Xk keysyms) >> to scancodes? >> > Ian just pointed out that there's some code in rdesktop to do just > that. xkeymap.c contains stuff to pull the keymap out of the X > server, parse it up, and then do keysym->scancode translation. Of > course, choosing a suitable keymap isn't entirely trivial, since the > server can't see what keymap the client's using. > There is also code in QEMU that does the translation. In fact, the QEMU code is based on the rdesktop tables :-) Since the QEMU tables are already installed (in /usr/share/qemu/keymaps) I suppose it's best to use those. Regards, Anthony Liguori > Steven. >