summaryrefslogtreecommitdiffstats
path: root/hw/input/ps2.c
diff options
context:
space:
mode:
authorMiika S2017-12-22 16:25:31 +0100
committerGerd Hoffmann2018-01-29 09:30:25 +0100
commita5f99be41ee8d874ab63c4abf733c91a483a28d4 (patch)
tree9cee7db09da10693b08f67207c6eff71a36dd11b /hw/input/ps2.c
parentinput: add mouse side buttons to virtio input (diff)
downloadqemu-a5f99be41ee8d874ab63c4abf733c91a483a28d4.tar.gz
qemu-a5f99be41ee8d874ab63c4abf733c91a483a28d4.tar.xz
qemu-a5f99be41ee8d874ab63c4abf733c91a483a28d4.zip
input: virtio: don't send mouse wheel event twice
On Linux, a mouse event is generated for both down and up when mouse wheel is used. This caused virtio_input_send() to be called twice each time the wheel was used. This commit adds a check for the button down state and only calls virtio_input_send() when it is true. Signed-off-by: Miika S <miika9764@gmail.com> Message-Id: <20171222152531.1849-4-miika9764@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/input/ps2.c')
0 files changed, 0 insertions, 0 deletions