From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49150 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdlLO-0001tG-3j for qemu-devel@nongnu.org; Fri, 14 Jan 2011 10:13:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdlLM-000665-Ts for qemu-devel@nongnu.org; Fri, 14 Jan 2011 10:13:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdlLM-00065q-Js for qemu-devel@nongnu.org; Fri, 14 Jan 2011 10:13:36 -0500 Message-ID: <4D306819.80405@redhat.com> Date: Fri, 14 Jan 2011 16:13:29 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] paravirtual mouse/tablet References: <4D2ED1C8.7070304@redhat.com> <4D2F1FA3.5030701@codemonkey.ws> <4D2F24EE.6070505@redhat.com> <4D2F2AB3.4020907@codemonkey.ws> <4D30332F.2070003@redhat.com> <108D35F5-7E49-4598-8903-599190A885E1@suse.de> In-Reply-To: <108D35F5-7E49-4598-8903-599190A885E1@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: spice-devel , Avi Kivity , "qemu-devel@nongnu.org" Hi, > So it'd end up being (x,y,pressure) N times (I think 16 is fine for > the foreseeable future). I'd tend to extend MOVE to (x,y,pressure,index) and send N events with the same timestamp. Needs to send only as many events as it finds fingers on the touchpad, i.e. usually just one or two, even if the protocol can easily handle alot more than 16 ;) For a simple tablet pressure and index would just be 0. > The details of what exactly that means > should be figured out by the guest driver. Agree. > I'm not familiar with the hardware interface, but in order to support > that the background interface must be a lot more complex than a > simple button press. Buttons events are for buttons. Real ones, which apple lost ;) Of course a tap on the trackpad is usually interpreted as mouse click. But that is the job of the guest OS, our virtual hardware doesn't care. > But then again - how would we forward fine-grained scrolling to the > guest if we only know that it's scrolling, but not what the actual > presses on the touchpad looked like? Ugh. There must be an interface to get (more or less) the raw touchpad data, for apps which want implement their own multitouch gestures? cheers, Gerd