All of lore.kernel.org
 help / color / mirror / Atom feed
From: Henrik Rydberg <rydberg@euromail.se>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Chris Bagwell <chris@cnpbagwell.com>,
	Ping Cheng <pinglinux@gmail.com>,
	linux-input <linux-input@vger.kernel.org>,
	Jiri Kosina <jkosina@suze.cz>
Subject: Re: [RFC] Adding BTN_TOOL_TOUCH to input.h
Date: Sat, 27 Nov 2010 18:04:57 +0100	[thread overview]
Message-ID: <4CF13A39.2080709@euromail.se> (raw)
In-Reply-To: <20101127081515.GD28667@core.coreip.homeip.net>

On 11/27/2010 09:15 AM, Dmitry Torokhov wrote:

> On Thu, Nov 25, 2010 at 03:05:30PM +0100, Henrik Rydberg wrote:
>> Hi,
>>
>> Reading through this thread, I think Dmitry's EVIOCGDEVTYPE is a great way to
>> resolve this. We should expect some changes in userland to correctly interpret
>> direct/indirect devices, and this seems a good way to go. The physical size of
>> the surface would also be great to retrieve this way. The recent resolution
>> addition is semantically odd, since we have only one physical surface, not one
>> per axes.
> 
> 1 for each of 2 major axes, at least. We might need resolution for
> pressure/distance as well, although it certainly won't be unit/mm ;)


Alright, neither abstraction is perfect, but I agree the resolution has its
virtues. :-)

>>
>> In short, my suggestion is to build a struct for device properties, like this:
>>
>> struct input_devinfo {
>> 	__u32	type;			/* bitmask of possible dev types */
>> 	__u32	capabilities;		/* bitmask of special device caps */
>> 	__u32	phys_abs_width;		/* physical width of surface (mm) */
>> 	__u32	phys_abs_height;	/* physical height of surface (mm) */
>> };
>>
>> Adding more stuff here seems plausible. For instance, special devices like
>> clickpads or integrated buttons would fit nicely in capabilities. The call would
>> be very similar, like
>>
>> 	ioctl(fd, EVIOCGDEVINFO, &info);
>>
> 
> Yep, should work, although the dimensions could be retrieved from
> absinfo.
> 


I'll see if I can fit that (minus physical dimensions) into the upcoming patch sets.

Cheers,
Henrik

  reply	other threads:[~2010-11-27 17:05 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-25 14:05 [RFC] Adding BTN_TOOL_TOUCH to input.h Henrik Rydberg
2010-11-25 14:12 ` Nikolai Kondrashov
2010-11-26 23:02   ` Chris Bagwell
2010-11-27  7:59     ` Dmitry Torokhov
2010-11-27  8:06     ` Nikolai Kondrashov
2010-11-27  8:32       ` Dmitry Torokhov
2010-11-27  8:51         ` Nikolai Kondrashov
     [not found]           ` <20101127091533.GA27213@core.coreip.homeip.net>
2010-11-27  9:46             ` Nikolai Kondrashov
2010-11-27 22:08               ` Chris Bagwell
2010-11-27 23:39               ` Dmitry Torokhov
2010-11-28  7:22                 ` Dmitry Torokhov
2010-11-28 14:57                   ` Nikolai Kondrashov
2010-11-28 21:47                     ` Dmitry Torokhov
2010-12-07 16:59                       ` Nikolai Kondrashov
2010-11-28  8:01                 ` Dmitry Torokhov
2010-11-28  8:28                   ` Henrik Rydberg
2010-11-28 10:14                   ` Nikolai Kondrashov
2010-11-27  8:15 ` Dmitry Torokhov
2010-11-27 17:04   ` Henrik Rydberg [this message]
2010-11-27 22:22     ` Chris Bagwell
  -- strict thread matches above, loose matches on Subject: below --
2010-11-23 20:48 Ping Cheng
2010-11-23 22:30 ` Dmitry Torokhov
2010-11-23 22:40   ` Ping Cheng
2010-11-24  2:52     ` Dmitry Torokhov
2010-11-24  4:55       ` Chris Bagwell
2010-11-24 20:26         ` Dmitry Torokhov
2010-11-24 22:55           ` Chris Bagwell
2010-11-25  1:31             ` Dmitry Torokhov
2010-11-26 22:48               ` Chris Bagwell
2010-11-27  8:06                 ` Dmitry Torokhov

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=4CF13A39.2080709@euromail.se \
    --to=rydberg@euromail.se \
    --cc=chris@cnpbagwell.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jkosina@suze.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=pinglinux@gmail.com \
    /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.