Query last reported event state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux