From: Chris Bagwell <chris@cnpbagwell.com>
To: Peter Hutterer <peter.hutterer@who-t.net>
Cc: Henrik Rydberg <rydberg@euromail.se>,
Chase Douglas <chase.douglas@canonical.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Jiri Kosina <jkosina@suse.cz>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] input: mt: Interface and MT_TOOL documentation updates
Date: Tue, 14 Dec 2010 08:33:39 -0600 [thread overview]
Message-ID: <AANLkTinPSkFddbM0dfWp3ROHYgvb7Gx2A_Avudwkoqif@mail.gmail.com> (raw)
In-Reply-To: <20101214043635.GB12059@salty.local>
On Mon, Dec 13, 2010 at 10:36 PM, Peter Hutterer
<peter.hutterer@who-t.net> wrote:
> On Tue, Dec 14, 2010 at 12:25:26AM +0100, Henrik Rydberg wrote:
>> >> The envelope contacts serve as a way to detect a small area of fingers or a
>>
>> >> large area of fingers. There is nothing inherently problematic with having one
>> >> or three or more such contacts.
>> >
>> > Then I'm more confused :).
>> >
>> > I see one problem: devices that report two touch points, (X1, Y1) and
>> > (X2, Y2), but in reality the touches could be at (X1, Y2) and (X2, Y1)
>> > instead. Using a rectangle helps resolve this issue for panning and
>> > pinching, though not for rotation.
>>
>>
>> If panning and pinching and rotation could all be recovered properly, then the
>> individual contacts could actually have been reconstructed properly in the first
>> place. This is the whole point - there is not enough information available for
>> rotation to be recovered properly.
>
> can you post an example event stream of the MT_ENVELOPE tool? I'm having
> trouble wrapping my head around it.
>
Patch 2/2 of synaptics patches from Henrik show this in code form but
here is text form.
Its sets up 2 MT slots and start out at (x,y)=(0,0) for both slots
with no fingers touching. When 1 finger touches, slot 0 shows (x,y)
as reported by hardware and keeps slot 1 at (0,0). When 2 fingers
touch, slot 0 shows lower left of rectangle and slot 1 shows upper
right corner. When 3 fingers touch, same thing as 2 fingers.
For 1 finger case, we could send duplicate values of slot 0 into slot
1 but (0,0) is more efficient for more typical 1 finger usage.
The 3 finger case helps show that hardware itself really wants to talk
in terms of rectangles as well, even if they give half hearted
attempts at real multi-touch points.
Since these slots need to be treated as a whole, no tracking id or similar.
Chris
next prev parent reply other threads:[~2010-12-14 14:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-10 17:24 [PATCH v2] input: mt: Interface and MT_TOOL documentation updates Henrik Rydberg
2010-12-10 17:36 ` Dmitry Torokhov
2010-12-10 17:41 ` Henrik Rydberg
2010-12-10 17:42 ` Ping Cheng
2010-12-10 17:47 ` Henrik Rydberg
2010-12-14 3:53 ` Peter Hutterer
2010-12-13 17:46 ` Chase Douglas
2010-12-13 21:21 ` Henrik Rydberg
2010-12-13 23:02 ` Chase Douglas
2010-12-13 23:25 ` Henrik Rydberg
2010-12-14 4:36 ` Peter Hutterer
2010-12-14 9:10 ` Henrik Rydberg
2010-12-20 8:17 ` Peter Hutterer
2010-12-14 14:33 ` Chris Bagwell [this message]
2010-12-14 15:02 ` Chris Bagwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinPSkFddbM0dfWp3ROHYgvb7Gx2A_Avudwkoqif@mail.gmail.com \
--to=chris@cnpbagwell.com \
--cc=chase.douglas@canonical.com \
--cc=dmitry.torokhov@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.hutterer@who-t.net \
--cc=rydberg@euromail.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).