mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
Merge "input: add new input event code to pass timestamp to userspace"
This commit is contained in:
commit
d4b902d758
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue