qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH] ui: input-linux: Add absolute event support
Date: Fri, 05 May 2017 10:39:46 +0200

  Hi,

> This patch allows, for example, uinput to be used to create virtual
> absolute input devices. This lets you build external systems which share
> physical input devices between guests.

Ah, interesting.

> +static bool input_linux_abs_range_is_valid(int min, int max)
> +{
> +  int64_t difference = ((int64_t) max) - ((int64_t) min);
> +  return difference > 0 && difference <= INT_MAX;
> +}

Does this happen in practice?
If so we might consider improving ui/input.c instead.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]