Merge "input: add new input event code to pass timestamp to userspace"

This commit is contained in:
Linux Build Service Account 2014-09-20 07:34:00 -07:00 committed by Gerrit - the friendly Code Review server
commit d4b902d758
3 changed files with 9 additions and 0 deletions

View file

@ -91,6 +91,11 @@ sent in the evdev event stream.
event and query the device (using EVIOCG* ioctls) to obtain its
current state.
* SYN_TIME_SEC, SYN_TIME_NSEC:
- Used to report the timestamp from the hardware. The timestamp should record
the exact time when the hardware events happens. The timestamp is
CLOCK_MONOTONIC based.
EV_KEY:
----------
EV_KEY events take the form KEY_<name> or BTN_<name>. For example, KEY_A is used

View file

@ -266,6 +266,8 @@ static int input_get_disposition(struct input_dev *dev,
case EV_SYN:
switch (code) {
case SYN_CONFIG:
case SYN_TIME_SEC:
case SYN_TIME_NSEC:
disposition = INPUT_PASS_TO_ALL;
break;

View file

@ -198,6 +198,8 @@ struct input_keymap_entry {
#define SYN_CONFIG 1
#define SYN_MT_REPORT 2
#define SYN_DROPPED 3
#define SYN_TIME_SEC 4
#define SYN_TIME_NSEC 5
/*
* Keys and buttons