[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] [PATCH 0/5] Add horizontal wheel support to mice,
From: |
Anthony Liguori |
Subject: |
Re: [Qemu-devel] [RFC] [PATCH 0/5] Add horizontal wheel support to mice, where possible |
Date: |
Wed, 02 Jun 2010 08:30:11 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4 |
On 05/04/2010 11:56 AM, Brad Jorsch wrote:
The emulated mice should emulate a horizontal wheel when possible. This
patch series does that for the USB mouse and tablet and the ExPS/2
mouse. As far as I can tell the vmmouse protocol doesn't handle a
horizontal wheel, and I have no idea if emulating a wheel might make
sense for any of the other mouse types.
At this point, are we just talking about adding additional mouse buttons?
I think instead of adding an additional parameter for horizontal wheel,
we should look at making the API capable of accepting/generating
arbitrary button presses.
Really, we should just drop dz and treat vertical wheel as two button
presses within button_state. Likewise, horizontal wheel should just be
two additional bits within button_state.
Regards,
Anthony Liguori
I've tested this using the SDL interface and an Ububtu 10.04 cd image;
xev reports the correct events for all three devices, and a gedit window
with sufficient text to create scrollbars scrolls correctly with both
mice (didn't test the tablet). More testing would be good.
See also Debian bug #579968.[1]
[1] http://bugs.debian.org/579968
- Re: [Qemu-devel] [RFC] [PATCH 0/5] Add horizontal wheel support to mice, where possible,
Anthony Liguori <=