mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
virtio-input: send rel-wheel events for wheel buttons
qemu uses wheel-up/down button events for mouse wheel input, however linux applications typically want REL_WHEEL events. This fixes wheel with linux guests. Tested with X11/wayland, and windows virtio-input driver. Based on a patch from Marc. Added property to enable/disable wheel axis. Cc: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20170926113243.26081-1-kraxel@redhat.com
This commit is contained in:
parent
74083f9c01
commit
f4924974c7
3 changed files with 124 additions and 6 deletions
|
@ -2,7 +2,15 @@
|
|||
#define HW_COMPAT_H
|
||||
|
||||
#define HW_COMPAT_2_10 \
|
||||
/* empty */
|
||||
{\
|
||||
.driver = "virtio-mouse-device",\
|
||||
.property = "wheel-axis",\
|
||||
.value = "false",\
|
||||
},{\
|
||||
.driver = "virtio-tablet-device",\
|
||||
.property = "wheel-axis",\
|
||||
.value = "false",\
|
||||
},
|
||||
|
||||
#define HW_COMPAT_2_9 \
|
||||
{\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue