qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Brad Campbell <brad@wasp.net.au>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] rfb patch and mouse movement
Date: Mon, 17 Jan 2005 08:23:28 +0400	[thread overview]
Message-ID: <41EB3DC0.7040804@wasp.net.au> (raw)
In-Reply-To: <20050116143509.GA31097@jbrown.mylinuxbox.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

  reply	other threads:[~2005-01-17  4:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-16  9:41 [Qemu-devel] rfb patch and mouse movement Brad Campbell
2005-01-16 14:35 ` Jim C. Brown
2005-01-17  4:23   ` Brad Campbell [this message]
2005-01-17 15:22     ` Jim C. Brown
2005-01-17 14:49   ` Johannes Schindelin
2005-01-17 15:18     ` Jim C. Brown
2005-01-17 18:02       ` Johannes Schindelin
2005-01-17 18:15         ` [Qemu-devel] " Ronald
2005-01-17 19:04           ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41EB3DC0.7040804@wasp.net.au \
    --to=brad@wasp.net.au \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).