diff options
author | Michael Wright <michaelwr@google.com> | 2015-04-21 15:06:43 +0100 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2015-04-21 15:06:43 +0100 |
commit | 8b0673ce0ca97952d3ed9cb8912b31f367e41c0c (patch) | |
tree | e86765c8ee7e1e305d1001a55fb7d827ef95dd8e /services/inputflinger/InputReader.cpp | |
parent | 4af18b90c149deba620270670c8c630a3fe56165 (diff) | |
download | frameworks_native-8b0673ce0ca97952d3ed9cb8912b31f367e41c0c.zip frameworks_native-8b0673ce0ca97952d3ed9cb8912b31f367e41c0c.tar.gz frameworks_native-8b0673ce0ca97952d3ed9cb8912b31f367e41c0c.tar.bz2 |
Increase stylus data timeout.
Sometimes stylus data will be delayed by 30 - 40ms. By increasing the
timeout we pretty much always pick up stylus data and the touch
latency feels surprisingly small.
Change-Id: I39f5b9037ce0444b1e957149d3f1c3a3137804cb
Diffstat (limited to 'services/inputflinger/InputReader.cpp')
-rw-r--r-- | services/inputflinger/InputReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/inputflinger/InputReader.cpp b/services/inputflinger/InputReader.cpp index 0e60d4d..3e9f765 100644 --- a/services/inputflinger/InputReader.cpp +++ b/services/inputflinger/InputReader.cpp @@ -71,7 +71,7 @@ static const size_t MAX_SLOTS = 32; // Maximum amount of latency to add to touch events while waiting for data from an // external stylus. -static const nsecs_t EXTERNAL_STYLUS_DATA_TIMEOUT = ms2ns(32); +static const constexpr nsecs_t EXTERNAL_STYLUS_DATA_TIMEOUT = ms2ns(72); // --- Static Functions --- |