From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42274 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdkZF-00052i-VU for qemu-devel@nongnu.org; Fri, 14 Jan 2011 09:23:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdkZC-0007WT-4A for qemu-devel@nongnu.org; Fri, 14 Jan 2011 09:23:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:21169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdkZB-0007WN-S6 for qemu-devel@nongnu.org; Fri, 14 Jan 2011 09:23:50 -0500 Message-ID: <4D305C6A.8010609@redhat.com> Date: Fri, 14 Jan 2011 15:23:38 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] paravirtual tablet v2 References: <4D303B5B.6070609@redhat.com> <4D305B1A.3030801@codemonkey.ws> In-Reply-To: <4D305B1A.3030801@codemonkey.ws> 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: Anthony Liguori Cc: spice-devel , "qemu-devel@nongnu.org" >> /* >> * QEMU_PVTABLET_MSG_BTN_{DOWN,UP}, host -> guest >> * send button press+release events >> */ >> typedef struct qemu_pvtablet_button { >> uint32_t button; >> uint32_t mask; >> } qemu_pvtablet_button; > > What's the semantic of button and mask? I'd assume that mask is the new > button mask but then I'm not sure what button is used for. "button" is the index of the button which was pressed (BTN_DOWN) or released (BTN_UP). "mask" is the new button mask. cheers, Gerd