From: Henrik Rydberg <rydberg@euromail.se>
To: Chris Bagwell <chris@cnpbagwell.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: 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: Thu, 25 Nov 2010 15:05:30 +0100 [thread overview]
Message-ID: <4CEE6D2A.9040408@euromail.se> (raw)
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.
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);
What do you think?
Cheers,
Henrik
next reply other threads:[~2010-11-25 14:05 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-25 14:05 Henrik Rydberg [this message]
2010-11-25 14:12 ` [RFC] Adding BTN_TOOL_TOUCH to input.h 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
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=4CEE6D2A.9040408@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.