OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4af18b9
)
Increase stylus data timeout.
author
Michael Wright
<michaelwr@google.com>
Tue, 21 Apr 2015 14:06:43 +0000
(15:06 +0100)
committer
Michael Wright
<michaelwr@google.com>
Tue, 21 Apr 2015 14:06:43 +0000
(15:06 +0100)
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
services/inputflinger/InputReader.cpp
patch
|
blob
|
history
diff --git
a/services/inputflinger/InputReader.cpp
b/services/inputflinger/InputReader.cpp
index
0e60d4d
..
3e9f765
100644
(file)
--- 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(3
2);
+static const
constexpr nsecs_t EXTERNAL_STYLUS_DATA_TIMEOUT = ms2ns(7
2);
// --- Static Functions ---