From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53755 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pejou-0003Ck-Vl for qemu-devel@nongnu.org; Mon, 17 Jan 2011 02:48:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pejou-0003z0-0D for qemu-devel@nongnu.org; Mon, 17 Jan 2011 02:48:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pejot-0003yV-PR for qemu-devel@nongnu.org; Mon, 17 Jan 2011 02:48:07 -0500 Message-ID: <4D33F431.7080805@redhat.com> Date: Mon, 17 Jan 2011 08:48:01 +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> <4D306819.80405@redhat.com> <5A4EDCB0-73BD-435F-B90E-7DE49B6DE660@suse.de> <6AC84F56-A180-49A5-AE31-C06DCC7AE986@suse.de> <4D307A7B.2080809@redhat.com> In-Reply-To: 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 Developers" >> There are three cases: >> >> (1) no pressure supported (i.e. your mouse moving around in the vnc >> window and qemu reporting this as tablet coordinates). >> (2) just pen/finger present/not present supported. pressure jumps >> between 0 and max (and we can make max == 1 in that case). > > Phew - that's one of the bits where touchpads and tablets behave > differently IIUC. For touchpads, pressing means movement happens. > For tablets, pressing means an actual press, as if you would press > your pencil on a sheet of paper. So for tablets, pressure==1 > basically means click. I wouldn't make a difference from the virtual hardware perspective. If something touches the pad/tablet surface we'll report the position where it happened (and the pressure if supported). Whenever this is interpreted as click or not is up to the guest. > Now the thing is that multitouch gestures might take non-click > pressure into account for their calculations. So we need pressure > for movements on touchpads, but with tablets, we only need pressure > when clicks happen. For everyone else, clicks would just be a button > press. -EPARSE. What is "non-click pressure" ? cheers, Gerd