Re: [Qemu-devel] [PATCH] virtio-input: send rel-wheel events for wheel buttons

2017-08-29 Thread Ladi Prosek
On Wed, Aug 23, 2017 at 3:51 PM, Gerd Hoffmann wrote: > 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 patc

Re: [Qemu-devel] [PATCH] virtio-input: send rel-wheel events for wheel buttons

2017-08-23 Thread Gerd Hoffmann
On Wed, 2017-08-23 at 14:38 +, Marc-André Lureau wrote: > Hi > > On Wed, Aug 23, 2017 at 3:52 PM Gerd Hoffmann > wrote: > > qemu uses wheel-up/down button events for mouse wheel input, > > however > > linux applications typically want REL_WHEEL events. > > > > This fixes wheel with linux gue

Re: [Qemu-devel] [PATCH] virtio-input: send rel-wheel events for wheel buttons

2017-08-23 Thread Marc-André Lureau
Hi On Wed, Aug 23, 2017 at 3:52 PM Gerd Hoffmann wrote: > 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

[Qemu-devel] [PATCH] virtio-input: send rel-wheel events for wheel buttons

2017-08-23 Thread Gerd Hoffmann
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. TODO: add

Re: [Qemu-devel] [PATCH] virtio-input: send rel-wheel events for wheel buttons

2017-08-21 Thread Marc-André Lureau
Hi - Original Message - > On Wed, 2017-08-09 at 00:47 +0200, Marc-André Lureau wrote: > > qemu uses wheel-up/down button events for mouse wheel input, however > > linux applications typically want REL_WHEEL events. > > --verbose please. > > Both should work just fine. I haven't done ext

Re: [Qemu-devel] [PATCH] virtio-input: send rel-wheel events for wheel buttons

2017-08-21 Thread Gerd Hoffmann
Hi, > >  .select= VIRTIO_INPUT_CFG_EV_BITS, > >  .subsel= EV_REL, > > -.size  = 1, > > +.size  = 2, > >  .u.bitmap  = { > > -(1 << REL_X) | (1 << REL_Y), > > +(1 << REL_X) | (1 << REL_Y),  (1 << (REL_WHEEL - 8)) > >

Re: [Qemu-devel] [PATCH] virtio-input: send rel-wheel events for wheel buttons

2017-08-21 Thread Gerd Hoffmann
On Wed, 2017-08-09 at 00:47 +0200, Marc-André Lureau wrote: > qemu uses wheel-up/down button events for mouse wheel input, however > linux applications typically want REL_WHEEL events. --verbose please. Both should work just fine. cheers, Gerd

Re: [Qemu-devel] [PATCH] virtio-input: send rel-wheel events for wheel buttons

2017-08-08 Thread Michael S. Tsirkin
On Wed, Aug 09, 2017 at 12:47:50AM +0200, Marc-André Lureau wrote: > 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. > > S

[Qemu-devel] [PATCH] virtio-input: send rel-wheel events for wheel buttons

2017-08-08 Thread Marc-André Lureau
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. Signed-off-by: Marc-André Lureau --- hw/input/virtio-input-hid.c | 15 ++