From: Ferruh Yigit <fery@cypress.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: "linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
Henrik Rydberg <rydberg@euromail.se>
Subject: Re: ABS_MT_TOUCH_MAJOR metric
Date: Thu, 22 May 2014 22:29:43 +0300 [thread overview]
Message-ID: <537E5027.9010705@cypress.com> (raw)
In-Reply-To: <20140522172353.GA1984@core.coreip.homeip.net>
On 05/22/2014 08:23 PM, Dmitry Torokhov wrote:
> Hi Ferruh,
>
> On Thu, May 22, 2014 at 02:03:40PM +0300, Ferruh Yigit wrote:
>> Hi,
>>
>> What is the metric of ABS_MT_TOUCH_MAJOR / ABS_MT_WIDTH_MAJOR events?
>>
>> The Linux documentation
>> <https://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt> says:
>> "The length of the major axis of the contact. The length should be given
>> in surface units. ..."
>>
>> What does "surface units" means, is it millimeter or pixels?
> It is whatever unit the device reports, similarly to ABS_MT_POSITION_X
> and ABS_MT_POSITION_Y. Userspace can use EVIOCGABS to map device units
> onto common units.
>
> From include/uapi/linux/input.h (struct input_absinfo):
>
> * Resolution for main axes (ABS_X, ABS_Y, ABS_Z) is reported in
> * units per millimeter (units/mm), resolution for rotational axes
> * (ABS_RX, ABS_RY, ABS_RZ) is reported in units per radian.
>
> Hope this helps.
>
Hi Dmitry,
I understand this works for Dmitry ABS_X, ABS_Y,
touchscreen reports between 0..A, screen resolution is 0..B, a mapping
can be done 0..A -> 0..B
But for ABS_MT_TOUCH_MAJOR how this scaling can be done,
touchscreen reports between 0..A, do we know the min/max values for
application side?
--
Thanks,
ferruh
next prev parent reply other threads:[~2014-05-22 19:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 11:03 ABS_MT_TOUCH_MAJOR metric Ferruh Yigit
2014-05-22 17:23 ` Dmitry Torokhov
2014-05-22 19:29 ` Ferruh Yigit [this message]
2014-05-22 19:42 ` Dmitry Torokhov
2014-05-22 19:45 ` Michael Wright
2014-05-22 19:46 ` Henrik Rydberg
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=537E5027.9010705@cypress.com \
--to=fery@cypress.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.