From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwJF3-0007pw-G0 for qemu-devel@nongnu.org; Mon, 29 Mar 2010 13:59:13 -0400 Received: from [140.186.70.92] (port=52818 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwJF2-0007pR-9Z for qemu-devel@nongnu.org; Mon, 29 Mar 2010 13:59:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwJF0-0008CT-So for qemu-devel@nongnu.org; Mon, 29 Mar 2010 13:59:12 -0400 Received: from smtp.ispras.ru ([83.149.198.201]:34531) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwJF0-0008Ac-Ds for qemu-devel@nongnu.org; Mon, 29 Mar 2010 13:59:10 -0400 Message-ID: <4BB0EA65.2060307@ispras.ru> Date: Mon, 29 Mar 2010 21:59:01 +0400 From: Dmitry Zhurikhin MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Elo touchpad 10 bytes emulator References: <1269876731-22607-1-git-send-email-ricardo.ribalda@gmail.com> In-Reply-To: <1269876731-22607-1-git-send-email-ricardo.ribalda@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ricardo Ribalda Delgado Cc: qemu-devel@nongnu.org Ricardo Ribalda Delgado wrote: > TODO: The output of the touchpad should be in the range of the > resolution. But I don't know a clean way to get the screen resolution. > Any help will be very wellcomed Hello. Looking at the Linux kernel driver it seems to consider reported coordinates to be in the range of 96-4000. So you might try to convert QEMU absolute coordinates 0-0x7FFF to these ones and check if it works. Hope this helps you. Regards, Dmitry