From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0mki-0003hS-VQ for qemu-devel@nongnu.org; Tue, 19 Jun 2007 19:04:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0mkh-0003h2-3Z for qemu-devel@nongnu.org; Tue, 19 Jun 2007 19:04:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0mkg-0003gz-VF for qemu-devel@nongnu.org; Tue, 19 Jun 2007 19:04:47 -0400 Received: from wr-out-0506.google.com ([64.233.184.230]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I0mkg-0001gk-F7 for qemu-devel@nongnu.org; Tue, 19 Jun 2007 19:04:46 -0400 Received: by wr-out-0506.google.com with SMTP id 71so1694776wri for ; Tue, 19 Jun 2007 16:04:45 -0700 (PDT) Message-ID: Date: Wed, 20 Jun 2007 01:04:44 +0200 From: "andrzej zaborowski" Subject: Re: [Qemu-devel] [PATCH] touchscreen screen coordinates In-Reply-To: <1182274494.6537.1195974043@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1182274494.6537.1195974043@webmail.messagingengine.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, On 19/06/07, dmlist@openright.org wrote: > > Attached is a simple patch (for 0.9.0 and current cvs), that allows: > > -usbdevice touchscreen > > which behaves the same as touchpad, except the coordinates are screen > coordinates instead of scaled 32768 coordinates. > > This makes qemu compatible with tslib, often used by xserver-kdrive. > tslib does not scale usb input to screen. tslib assumes input is screen > coordinates. To be precise, tslib assumes that you calibrate the touchscreen on first boot, or have an /etc/pointercal file provided. So this is another way to have it report the right coordinates. > > (Well tslib requires a small patch to allow button events to work like > pressure events). > > Perhaps an additional or alternative change could separate usb > touchscreen support from tablet, such that ABS_PRESSURE events are > generated instead of left button. This is why -usbdevice wacom-tablet was added. It lets you use unmodified tslib because the linux driver for the tablet reports also touch pressure. It works for OpenEmbedded builds for i386 and arm (although for arm there is also the ADS7846 touchscreen). Adding a HID touchscreen may be another possibility. Regards, Andrzej