linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Daniel Mack <daniel@caiaq.de>
Cc: linux-input@vger.kernel.org
Subject: Re: ABS_MAX incrementation?
Date: Mon, 19 Apr 2010 10:49:25 -0700	[thread overview]
Message-ID: <20100419174924.GB22295@core.coreip.homeip.net> (raw)
In-Reply-To: <20100419171412.GH30801@buzzloop.caiaq.de>

Hi Daniel,

On Mon, Apr 19, 2010 at 07:14:12PM +0200, Daniel Mack wrote:
> Hi,
> 
> I'm planning to write a driver for a device with a number of absolute
> axis and 16 pressure-sensitive trigger pads. Alltogether, it will have
> more absoulte axis informations than the API in include/input.h is able
> to represent. More than that, the definitions I'm referring to won't
> describe the actual information in a sane way. I'm uncertain whether
> this list can be extended by something like the patch below. Or is this
> a nonono as it breaks existing user space applications? Any other idea
> of how to solve this?
>

Extending the number of axes should be possible (we have done that for
number of keys/buttons not that long ago) and yes, userspace breakages
are possible but are most likely userspace fault.

The fact that data is purely device specific is a bit disconcerning, but
I understand that not every device uses commonly defined events. It _is_
an input device though, right?

I wonder if ofr this kinde of "flex" pads we could move into 2-event
notification so as not to expand the number of "axes" forever - use
ABS_PAD to transmit pad number and ABS_MISC to transmit actual value.
Such scheme will not allow comminucate min and max values for dpads
though, so not very good...

Another issue is that ABS data is pretty large, it would be nice if we
moved from this data being always present ininput device structure to
having drivers allocate it when needed.

Thanks.

-- 
Dmitry

  reply	other threads:[~2010-04-19 17:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 17:14 ABS_MAX incrementation? Daniel Mack
2010-04-19 17:49 ` Dmitry Torokhov [this message]
2010-04-19 18:06   ` Daniel Mack
2010-04-21  6:29     ` Dmitry Torokhov
2010-05-02 12:13       ` Daniel Mack
2010-05-04  6:58         ` Dmitry Torokhov
2010-05-04  7:18           ` Daniel Mack

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=20100419174924.GB22295@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=daniel@caiaq.de \
    --cc=linux-input@vger.kernel.org \
    /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).