From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F7Fdc-0006D4-JV for qemu-devel@nongnu.org; Thu, 09 Feb 2006 12:31:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F7FdZ-0006AJ-Q1 for qemu-devel@nongnu.org; Thu, 09 Feb 2006 12:31:23 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F7FdY-00068o-IG for qemu-devel@nongnu.org; Thu, 09 Feb 2006 12:31:20 -0500 Received: from [203.190.192.17] (helo=wasp.net.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F7Fh8-0000lb-Iu for qemu-devel@nongnu.org; Thu, 09 Feb 2006 12:35:03 -0500 Message-ID: <43EB7C66.4070207@wasp.net.au> Date: Thu, 09 Feb 2006 21:31:18 +0400 From: Brad Campbell MIME-Version: 1.0 Subject: Re: [Qemu-devel] Grabless pointer References: In-Reply-To: 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 malc wrote: > At http://www.boblycat.org/~malc/code/patches/qemu/1_mqemu.tgz you will > find two patches and binary XFree86 module that allows grabless mouse > operation. > > Steps: > a. patch QEMU with 1_mqemu.patch > b. in the guest copy mouse_drv.o to /usr/X11R6/lib/modules/input > > Binary mouse_drv.o should work on all XFree86 (and derivatives such as > X.Org) given that they are older than 4.1. > > You can also fetch X410src-1.tgz from somewhere copy mouse.c (or patch > the orignal with 1_mouse.patch) and build it yourself. > I wrote a userspace touchscreen driver years ago that worked on win95-> and would probably still work on the latest and greatest.. it was actually a userspace application that talked to the touchscreen over rs232.. I could probably modify that to work here.. I'm gathering that if I read from 0xbad I'm going to get the absolute mouse position and by writing to 0xbad I can turn the sdl cursor on or off.. What happens with mouse clicks? do they still come over the ps2 interface? To make this work with what I have in mind we'd have to disable the ps2 position updates to the guest when the mouse app starts on the client and use the read port to give position updates. We would still pass the clicks through the ps2 interface however. -- "Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so." -- Douglas Adams