aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-04-13 02:29:38 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-04-13 02:35:24 -0400
commit9fb0f14e31b6101a0cc69a333b43541044f9b0a6 (patch)
treea384acf387f5dff50e0c3a56fa54336dedd286c5 /Documentation
parentb1e064b81e238d47cb56544b34c9baf473e09837 (diff)
Input: evdev - indicate buffer overrun with SYN_DROPPED
Add a new EV_SYN code, SYN_DROPPED, to inform the client when input events have been dropped from the evdev input buffer due to a buffer overrun. The client should use this event as a hint to reset its state or ignore all following events until the next packet begins. Signed-off-by: Jeff Brown <jeffbrown@android.com> [dtor@mail.ru: Implement Henrik's suggestion and drop old events in case of overflow.] Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/input/event-codes.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/input/event-codes.txt b/Documentation/input/event-codes.txt
index f13aee550409..23fcb05175be 100644
--- a/Documentation/input/event-codes.txt
+++ b/Documentation/input/event-codes.txt
@@ -85,6 +85,12 @@ sent in the evdev event stream.
85 - Used to synchronize and separate touch events. See the 85 - Used to synchronize and separate touch events. See the
86 multi-touch-protocol.txt document for more information. 86 multi-touch-protocol.txt document for more information.
87 87
88* SYN_DROPPED:
89 - Used to indicate buffer overrun in the evdev client's event queue.
90 Client should ignore all events up to and including next SYN_REPORT
91 event and query the device (using EVIOCG* ioctls) to obtain its
92 current state.
93
88EV_KEY: 94EV_KEY:
89---------- 95----------
90EV_KEY events take the form KEY_<name> or BTN_<name>. For example, KEY_A is used 96EV_KEY events take the form KEY_<name> or BTN_<name>. For example, KEY_A is used