[Qemu-devel] [PATCH v3] ui: input-linux: Add absolute event support

2017-05-05 Thread Philippe Voinov
ility, such external systems can't seamlessly share pointer devices between guests. Signed-off-by: Philippe Voinov --- ui/input-linux.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/ui/input-linux.c b/ui/input-linux.c index dc0613c..49d52a6 10

[Qemu-devel] [PATCH] ui: Support non-zero minimum values for absolute input axes

2017-05-05 Thread Philippe Voinov
This patch refactors ui/input.c to support absolute axis minimum values other than 0. All dependent calls to qemu_input_queue_abs have been updated to explicitly supply 0 as the axis minimum value. Signed-off-by: Philippe Voinov --- hw/input/virtio-input-hid.c | 6 -- include/ui/input.h

Re: [Qemu-devel] [PATCH] ui: input-linux: Add absolute event support

2017-05-05 Thread Philippe Voinov
Hi I doubt that any physical input device uses the full 32 bit range. The idea behind this check is more that if someone implements a uinput device and decides to use the maximum range, passing their values straight through to ui/input.c would cause weird behavior of the cursor. Exiting with a war

[Qemu-devel] [PATCH] ui: input-linux: Add absolute event support

2017-05-05 Thread Philippe Voinov
een guests. Signed-off-by: Philippe Voinov --- ui/input-linux.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/ui/input-linux.c b/ui/input-linux.c index dc0613c..7946b87 100644 --- a/ui/input-linux.c +++ b/ui/input-linux.c @@ -169,6 +169,10

[Qemu-devel] [PATCH v2] ui: input-linux: Add absolute event support

2017-05-05 Thread Philippe Voinov
sts. This patch also refactors the ui/input.c to support absolute axis minimum values other than 0. Signed-off-by: Philippe Voinov --- hw/input/virtio-input-hid.c | 6 -- include/ui/input.h | 11 +++ ui/cocoa.m | 4 ++-- ui/gtk.c| 4 ++--