From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Christian Burger <christian@krikkel.de>
Cc: qemu-devel@nongnu.org, kraxel@redhat.com
Subject: Re: [Qemu-devel] [PATCH] input: fix jumpy mouse cursor with USB mouse emulation
Date: Mon, 23 Jun 2014 14:43:17 +1000 [thread overview]
Message-ID: <1403498597.4587.124.camel@pasglop> (raw)
In-Reply-To: <1402773581-136888-1-git-send-email-christian@krikkel.de>
On Sat, 2014-06-14 at 20:19 +0100, Christian Burger wrote:
> Guest mouse pointer was jumpy, when moving host mouse in the vertical direction (see bug #1327800).
Ah, I've just done a deep dive into qemu input code to debug that
one as well :-)
It's not just "jumpy", it goes the wrong way around too...
> Signed-off-by: Christian Burger <christian@krikkel.de>
Tested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
> hw/input/hid.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/input/hid.c b/hw/input/hid.c
> index 295bdab..c58847e 100644
> --- a/hw/input/hid.c
> +++ b/hw/input/hid.c
> @@ -124,7 +124,7 @@ static void hid_pointer_event(DeviceState *dev, QemuConsole *src,
> if (evt->rel->axis == INPUT_AXIS_X) {
> e->xdx += evt->rel->value;
> } else if (evt->rel->axis == INPUT_AXIS_Y) {
> - e->ydy -= evt->rel->value;
> + e->ydy += evt->rel->value;
> }
> break;
>
> @@ -191,7 +191,7 @@ static void hid_pointer_sync(DeviceState *dev)
> if (hs->kind == HID_MOUSE) {
> prev->xdx += curr->xdx;
> curr->xdx = 0;
> - prev->ydy -= curr->ydy;
> + prev->ydy += curr->ydy;
> curr->ydy = 0;
> } else {
> prev->xdx = curr->xdx;
prev parent reply other threads:[~2014-06-23 4:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-14 19:19 [Qemu-devel] [PATCH] input: fix jumpy mouse cursor with USB mouse emulation Christian Burger
2014-06-23 4:43 ` Benjamin Herrenschmidt [this message]
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=1403498597.4587.124.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=christian@krikkel.de \
--cc=kraxel@redhat.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 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).