All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Tai-hwa Liang <avatar@sentelic.com>
Cc: Linux Input <linux-input@vger.kernel.org>
Subject: Re: Report FSP gesture code through EV_MSC?
Date: Thu, 19 Aug 2010 22:14:22 -0700	[thread overview]
Message-ID: <20100820051419.GC12243@core.coreip.homeip.net> (raw)
In-Reply-To: <10082011211418.7744@cnaqrzbavhz.fragryvp.pbz>

Hi Tai-hwa,

[Noe really cc-ing linux-input...]

On Fri, Aug 20, 2010 at 11:30:14AM +0800, Tai-hwa Liang wrote:
> Hi,
> 
>   Is it okay to use input_event(dev, EV_MSC, MSC_GESTURE, code) to report
> gesture code sent from our FSP?  It looks to me there is no MSC_GESTURE
> user in various kernel input driver so far.
> 
> * gesture code is a feature provided by Sentelic FSP, which converts
>   particular finger movement(single or multiple fingers) into a 8 bit
>   integer.  This supposes to save userland applications some time to
>   parse/process the gesture through multiple abs. coordinates.
> 

While the preferred way is to perform gesture recognition in userland
(where it is easier to adjust to user's preferences and share the code
between all kinds of input devices), for devices that do not report
absolute coordinates, like FSP, it should be OK to use MSC_GESTURE.
Or are you planning to activate absolute mode on your devices?

I think we should define a set of known values for this events so of
there is another driver using these they could use the same values.

Thanks.

-- 
Dmitry

           reply	other threads:[~2010-08-20  5:14 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <10082011211418.7744@cnaqrzbavhz.fragryvp.pbz>]

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=20100820051419.GC12243@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=avatar@sentelic.com \
    --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 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.