qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] paravirtual mouse/tablet


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] paravirtual mouse/tablet
Date: Mon, 17 Jan 2011 08:48:01 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Red Hat/3.1.7-3.el6_0 Thunderbird/3.1.7

There are three cases:

(1) no pressure supported (i.e. your mouse moving around in the vnc
window and qemu reporting this as tablet coordinates).
(2) just pen/finger present/not present supported.  pressure jumps
between 0 and max (and we can make max == 1 in that case).

Phew - that's one of the bits where touchpads and tablets behave
differently IIUC. For touchpads, pressing means movement happens.
For tablets, pressing means an actual press, as if you would press
your pencil on a sheet of paper. So for tablets, pressure==1
basically means click.

I wouldn't make a difference from the virtual hardware perspective. If something touches the pad/tablet surface we'll report the position where it happened (and the pressure if supported). Whenever this is interpreted as click or not is up to the guest.

Now the thing is that multitouch gestures might take non-click
pressure into account for their calculations. So we need pressure
for movements on touchpads, but with tablets, we only need pressure
when clicks happen. For everyone else, clicks would just be a button
press.

-EPARSE.  What is "non-click pressure" ?

cheers,
  Gerd




reply via email to

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