summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2013-02-23 06:33:08 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-02-23 06:33:08 +0000
commitc50536b85a0ad9a2d09c0dc7fea1c6667b9c69a9 (patch)
treed6667a640b67088cfec77fcfbdae6c24e48cf751
parent0d1ab1db229ffc1d776df466b02e2b51c004df9c (diff)
parenta0a72850c255b69f8f37e7602215287947bf2432 (diff)
downloadframeworks_base-c50536b85a0ad9a2d09c0dc7fea1c6667b9c69a9.zip
frameworks_base-c50536b85a0ad9a2d09c0dc7fea1c6667b9c69a9.tar.gz
frameworks_base-c50536b85a0ad9a2d09c0dc7fea1c6667b9c69a9.tar.bz2
Merge "Disable kernel keyrepeat"
-rw-r--r--services/input/EventHub.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/input/EventHub.cpp b/services/input/EventHub.cpp
index 1c9520d..0773afb 100644
--- a/services/input/EventHub.cpp
+++ b/services/input/EventHub.cpp
@@ -1183,6 +1183,12 @@ status_t EventHub::openDeviceLocked(const char *devicePath) {
break;
}
}
+
+ // Disable kernel key repeat since we handle it ourselves
+ unsigned int repeatRate[] = {0,0};
+ if (ioctl(fd, EVIOCSREP, repeatRate)) {
+ ALOGW("Unable to disable kernel key repeat for %s: %s", devicePath, strerror(errno));
+ }
}
// If the device isn't recognized as something we handle, don't monitor it.