From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CqOcc-0006TV-TL for qemu-devel@nongnu.org; Sun, 16 Jan 2005 23:36:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CqOcb-0006T2-VW for qemu-devel@nongnu.org; Sun, 16 Jan 2005 23:36:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqOcb-0006Ss-PR for qemu-devel@nongnu.org; Sun, 16 Jan 2005 23:36:09 -0500 Received: from [203.190.192.17] (helo=wasp.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CqOQ8-0007vZ-8H for qemu-devel@nongnu.org; Sun, 16 Jan 2005 23:23:16 -0500 Message-ID: <41EB3DC0.7040804@wasp.net.au> Date: Mon, 17 Jan 2005 08:23:28 +0400 From: Brad Campbell MIME-Version: 1.0 Subject: Re: [Qemu-devel] rfb patch and mouse movement References: <41EA36B5.4020302@wasp.net.au> <20050116143509.GA31097@jbrown.mylinuxbox.org> In-Reply-To: <20050116143509.GA31097@jbrown.mylinuxbox.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Jim C. Brown wrote: >>It worked by taking the data from the touchscreen, running it through the >>relevant calibration routines and sending windows absolute mouse movement >>messages. It worked rather well. > > > What "relevant calibration routines" are we looking at here? Pretty simple linear scaling and axis inversion for touchscreens. Nothing complex. Just calculate the max/min points based on some calibration, scale them up to 16 bit values and feed them to windows using a mouse movement message. >>Perhaps we could use the touchscreen for movement only >>and send clicks over the ps2 interface. > > > That would require an ugly custom guest driver. Not really. Touchscreen drivers and mouse drives co-exist. Just send the movement down the touch screen line and the clicks down the PS2 line. Simple. >>Just a wildly meandering thought as I struggle to make this session of qemu >>with vnc workable with Windows XP. > > > Does pressing Ctrl-Alt (or Ctrl-Shift??) to ungrab the mouse, then realiging > the host and guest pointers, and then regrabing the mouse work? This is what I > do w/ my no-sdl patch. I'm using VNC only, so there is no grab/un-grab. Now I at least I have it working so it's not such an issue, but it is annoying. I'll think about it a bit more as it's getting serious daily use now. Regards, Brad