From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Christian Burger <christian@krikkel.de>,
Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PULL 1/4] input: fix jumpy mouse cursor with USB mouse emulation
Date: Tue, 1 Jul 2014 16:07:23 +0200 [thread overview]
Message-ID: <1404223646-7899-2-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1404223646-7899-1-git-send-email-kraxel@redhat.com>
From: Christian Burger <christian@krikkel.de>
Guest mouse pointer was jumpy, when moving host mouse in the vertical direction (see bug #1327800).
Signed-off-by: Christian Burger <christian@krikkel.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
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 9656e90..148c003 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;
--
1.8.3.1
next prev parent reply other threads:[~2014-07-01 14:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 14:07 [Qemu-devel] [PULL 0/4] usb patch queue Gerd Hoffmann
2014-07-01 14:07 ` Gerd Hoffmann [this message]
2014-07-01 14:07 ` [Qemu-devel] [PULL 2/4] usb: Fix usb-bt-dongle initialization Gerd Hoffmann
2014-07-01 14:07 ` [Qemu-devel] [PULL 3/4] usb: initialize libusb_device to avoid crash Gerd Hoffmann
2014-07-01 14:07 ` [Qemu-devel] [PULL 4/4] ccid-card-emulated: use EventNotifier Gerd Hoffmann
2014-07-01 16:02 ` [Qemu-devel] [PULL 0/4] usb patch queue Peter Maydell
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=1404223646-7899-2-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=christian@krikkel.de \
--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).