Linux Input/HID development
 help / color / mirror / Atom feed
From: Daniel Mack <daniel@caiaq.de>
To: linux-input@vger.kernel.org
Subject: Query last reported event state
Date: Tue, 24 Nov 2009 18:33:56 +0100	[thread overview]
Message-ID: <20091124173356.GB14091@buzzloop.caiaq.de> (raw)

Hi,

is there a way to query the last state an input device reported,
preferably even for a special key mask? When a button is pressed and a
userspace application is started, it should be able to figure out the
current state, especially because those GPIO signals are likely
connected to other peripherals to report arbitrary events in the system.
Is there any such framework for that purpose?

A somewhat related topic is: Looking at the gpio_keys.c for example, I
think there should be code that reports an event from probe() when the
configured GPIO is not in its 'inactive' state, otherwise it will loose
the first key-up event, right?

Thanks,
Daniel


             reply	other threads:[~2009-11-24 17:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-24 17:33 Daniel Mack [this message]
2009-11-24 19:57 ` Query last reported event state Mika Westerberg
2009-11-26  3:51   ` 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=20091124173356.GB14091@buzzloop.caiaq.de \
    --to=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