qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] rfb patch and mouse movement


From: Brad Campbell
Subject: Re: [Qemu-devel] rfb patch and mouse movement
Date: Mon, 17 Jan 2005 08:23:28 +0400
User-agent: Mozilla Thunderbird 1.0 (X11/20050115)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]