summaryrefslogtreecommitdiffstats
path: root/services/input
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2013-02-21 23:51:45 -0800
committerMichael Wright <michaelwr@google.com>2013-02-22 14:46:49 -0800
commita0a72850c255b69f8f37e7602215287947bf2432 (patch)
treef9db793cd518d10f2287d12bc0d5ddcae3dccf50 /services/input
parent47e8074d401b0a2c38b376329bfe8bf1f62da23b (diff)
downloadframeworks_base-a0a72850c255b69f8f37e7602215287947bf2432.zip
frameworks_base-a0a72850c255b69f8f37e7602215287947bf2432.tar.gz
frameworks_base-a0a72850c255b69f8f37e7602215287947bf2432.tar.bz2
Disable kernel keyrepeat
Bug: 6332980 Change-Id: Ife69167285aad24ed3e4fa5b65abf59d8dfa4f0a
Diffstat (limited to 'services/input')
-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.