All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregory Alexander <yakovlev@grandecom.net>
To: jbrown106@swift-mail.com
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [SDL] Problem with mouse grabbing
Date: Fri, 30 Apr 2004 16:19:24 -0500	[thread overview]
Message-ID: <4092C2DC.9050508@grandecom.net> (raw)
In-Reply-To: <20040429214153.GA17222@jbrown.mylinuxbox.org>



Jim C. Brown wrote:
> On Sun, Apr 25, 2004 at 06:45:08PM -0500, Greg Alexander wrote:
> 
>>QEMU Needs to grab the mouse because it emulates a real mouse, instead 
>>of using a pseudo-mouse driver.
> 
> 
> I don't follow you here. How would using a pseudo-mouse driver fix it?

A pseudo-mouse driver for the guest OS would position the guest mouse 
pointer at the position of the host mouse pointer within the VNC window, 
instead of using relative mouse movements and pretending to be a real 
mouse to the guest OS.

>>As a result, mouse scaling will always be a problem, since all the user 
>>has to do is change the mouse scaling in the host OS to cause problems 
>>with the tracking (the scaling problem you noticed.) 
> 
> 
> There must be some way to detect this. If we did know what the mouse scaling
> was, this should be easy to compensate for.

If you have that much access to the guest OS, why not just write the 
pseudo-mouse driver?  Of course, there's also the option of adding a 
"dumb" scaling option to the emulated mouse that is user configurable.

>>That's not to 
>>mention if the mouse came in somewhere different from where it left. 
>>There's nothing to cause the emulated mouse pointer to move to the 
>>position where the real one entered the QEMU window.
>>
> 
> 
> It does for me, actually. And I didn't deliberately change any code to make it
> do this, either. It seems to be a side effect.

I guess if the scaling is accurate and it interprets moving off the 
screen and then moving back in at another location as a movement from 
where it left to where it came in, that would take care of the leaving 
and reentering problems.

GREG

  reply	other threads:[~2004-04-30 21:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-23 20:35 [Qemu-devel] [SDL] Problem with mouse grabbing Jim C. Brown
2004-04-25 23:45 ` Greg Alexander
2004-04-29 21:41   ` Jim C. Brown
2004-04-30 21:19     ` Gregory Alexander [this message]
2004-04-30 22:05       ` [Qemu-devel] " Matthew Mastracci

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=4092C2DC.9050508@grandecom.net \
    --to=yakovlev@grandecom.net \
    --cc=jbrown106@swift-mail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.