diff options
author | Michael Wright <michaelwr@google.com> | 2013-02-21 23:51:45 -0800 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2013-02-22 14:46:49 -0800 |
commit | a0a72850c255b69f8f37e7602215287947bf2432 (patch) | |
tree | f9db793cd518d10f2287d12bc0d5ddcae3dccf50 /services/input | |
parent | 47e8074d401b0a2c38b376329bfe8bf1f62da23b (diff) | |
download | frameworks_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.cpp | 6 |
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. |