Re: [Qemu-devel] [PULL v2 8/9] input-linux: refine mouse detection

2016-04-14 Thread Gerd Hoffmann
On Do, 2016-04-14 at 09:42 +0200, Ladi Prosek wrote: > On Wed, Apr 13, 2016 at 5:45 PM, Gerd Hoffmann wrote: > > Read absolute and relative axis information, only classify > > devices as mouse/tablet in case the x axis is present. > > I, too, had to come up with a heuristic to classify input devi

Re: [Qemu-devel] [PULL v2 8/9] input-linux: refine mouse detection

2016-04-14 Thread Ladi Prosek
On Wed, Apr 13, 2016 at 5:45 PM, Gerd Hoffmann wrote: > Read absolute and relative axis information, only classify > devices as mouse/tablet in case the x axis is present. I, too, had to come up with a heuristic to classify input devices in my guest driver and what I ended up with is different.

[Qemu-devel] [PULL v2 8/9] input-linux: refine mouse detection

2016-04-13 Thread Gerd Hoffmann
Read absolute and relative axis information, only classify devices as mouse/tablet in case the x axis is present. Signed-off-by: Gerd Hoffmann --- ui/input-linux.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/ui/input-linux.c b/ui/input-linu