From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50895 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdQgR-0004Jk-2V for qemu-devel@nongnu.org; Thu, 13 Jan 2011 12:10:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdQft-00055M-Ic for qemu-devel@nongnu.org; Thu, 13 Jan 2011 12:09:26 -0500 Received: from lo.gmane.org ([80.91.229.12]:35734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdQft-00055B-D2 for qemu-devel@nongnu.org; Thu, 13 Jan 2011 12:09:25 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PdQfq-0007gE-La for qemu-devel@nongnu.org; Thu, 13 Jan 2011 18:09:22 +0100 Received: from 93-34-149-100.ip50.fastwebnet.it ([93.34.149.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jan 2011 18:09:22 +0100 Received: from pbonzini by 93-34-149-100.ip50.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jan 2011 18:09:22 +0100 From: Paolo Bonzini Subject: Re: [Qemu-devel] paravirtual mouse/tablet Date: Thu, 13 Jan 2011 18:09:09 +0100 Message-ID: References: <4D2ED1C8.7070304@redhat.com> <4D2F1FA3.5030701@codemonkey.ws> <4D2F24EE.6070505@redhat.com> <4D2F2AB3.4020907@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <4D2F2AB3.4020907@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: spice-devel@lists.freedesktop.org On 01/13/2011 05:39 PM, Anthony Liguori wrote: > On 01/13/2011 10:14 AM, Avi Kivity wrote: >> On 01/13/2011 05:52 PM, Anthony Liguori wrote: >>> >>> /* host->guest, sent before any other events */ >>> typedef struct qemu_pvtablet_init { >>> uint32_t res_x; /* x axis resolution */ >>> uint32_t res_y; /* y axis resolution */ >>> uint32_t features; /* qemu_pvtablet_features */ >> >> uint32_t available_buttons; /* bitmask */ > > Yes, I had intended to do that but left it out. > > Should it be a bitmask or just a button count? Buttons really have no > standard meaning so usually a button count is sufficient. 3/4 are the mouse wheel, so if you had a mouse with 5 buttons and no wheel those would be buttons 0/1/2/5/6. Paolo