From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BUcEp-0003NI-DD for qemu-devel@nongnu.org; Sun, 30 May 2004 22:09:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BUcEn-0003Mi-Ms for qemu-devel@nongnu.org; Sun, 30 May 2004 22:09:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUcEn-0003MY-Hx for qemu-devel@nongnu.org; Sun, 30 May 2004 22:09:17 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BUcEU-0002WW-5L for qemu-devel@nongnu.org; Sun, 30 May 2004 22:08:58 -0400 Received: from [38.113.3.61] (helo=babyruth.hotpop.com) by mx20.gnu.org with esmtp (Exim 4.34) id 1BUc78-00028i-Mw for qemu-devel@nongnu.org; Sun, 30 May 2004 22:01:22 -0400 Received: from phreaker.net (kubrick.hotpop.com [38.113.3.103]) by babyruth.hotpop.com (Postfix) with SMTP id 178FA5445CA for ; Mon, 31 May 2004 01:28:10 +0000 (UTC) Received: from jbrown.mylinuxbox.org (pcp02555028pcs.batlfl01.tn.comcast.net [68.60.22.179]) by smtp-2.hotpop.com (Postfix) with ESMTP id 52A9C549D4B for ; Mon, 31 May 2004 01:28:08 +0000 (UTC) Date: Sun, 30 May 2004 22:00:07 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] VNC patch, the 3rd version Message-ID: <20040531020007.GA29335@jbrown.mylinuxbox.org> References: <40B693A7.9050006@ums.usu.ru> <20040528101351.GA18592@MAIL.13thfloor.at> <40B71B59.7080406@ums.usu.ru> <20040528110838.GA19126@MAIL.13thfloor.at> <40B743C0.8020003@ums.usu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sat, May 29, 2004 at 08:18:10PM +0200, Johannes Schindelin wrote: > Hi, > > There is a problem with the synaptic patch: If I read it correctly, the > absolute flag cannot be set to 1. There is simply no line which can do > that. > Correct. To do that on a real touchpad you have to set bit 7 of the mode bit to 1. My patch doesn't support setting the mode bit. > Jim, if you read this, can you help a mediocre programmer and enlighten me > how to use your work? > For now what you need to do is: The simple yet ugly hack would be to, on line 732 of pckbd.c, check if bit 7 of val is set. If so, set absolute mode on. if (val & 0x80) s->touchpad.absolute = 1; /* TODO: real support for changing the mode byte */ I'm trying to figure out how to implement this elegantly and support all possible modes. As you can tell by my silence, I haven't figured this out yet. > Another idea which hit me: I am not convinced that without guest drivers, > the synaptic patch helps VNC's mouse. It doesn't. Without guest drivers, the real touchpad emulates a normal mouse. Unless absolute mode is turned on, the patch doesn't add much. With absolute mode, it still doesn't add much due to missing functionality such as guestures. How would I emulate guestures with a 2-button mouse is the question here. (Emulating a third button or scrolling with a real mouse that has a real scrollwheel is not that hard, but with a mere 2 button mouse the problem becomes much harder.) > So why not use the > graphical feedback when using the mouse to determine where the guest > cursor is now (and how far it lags behind/runs in front)? I know, it is > less than clean, but it would be fun! I think I will try it if nobody > yells at me. Good luck. This will not be easy at all (for example, what if the guest OS is showing a screenshot, which happens to include the image of the mouse pointer -- and remember that each GUI has a different looking mouse pointer, and most have several, which can be swapped in at random from the viewpoint of qemu) but if you can pull it off it could be a useful feature. > > Ciao, > Dscho > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.