diff options
author | Christopher Tate <ctate@google.com> | 2010-03-04 16:00:29 -0800 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2010-03-04 16:00:29 -0800 |
commit | 4ff7e223a9507b95ffc58a188be20217f2b3c26e (patch) | |
tree | d26156a5f3ea53f13695037f6ca768e3ea960a20 /libs | |
parent | 175ab23dbf098a8b870ebe8cb90ac16e5b50f0ef (diff) | |
download | frameworks_base-4ff7e223a9507b95ffc58a188be20217f2b3c26e.zip frameworks_base-4ff7e223a9507b95ffc58a188be20217f2b3c26e.tar.gz frameworks_base-4ff7e223a9507b95ffc58a188be20217f2b3c26e.tar.bz2 |
Fix #2489986 : The key bitmask needs to cover all possible keys
Change-Id: Ieebd2f879e6b6fbc0388655dd66f34be89e809a0
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ui/EventHub.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ui/EventHub.cpp b/libs/ui/EventHub.cpp index 57192a5..34cd9d1 100644 --- a/libs/ui/EventHub.cpp +++ b/libs/ui/EventHub.cpp @@ -608,7 +608,7 @@ int EventHub::open_device(const char *deviceName) // consider up through the function keys; we don't want to include // ones after that (play cd etc) so we don't mistakenly consider a // controller to be a keyboard. - uint8_t key_bitmask[(KEY_PLAYCD+1)/8]; + uint8_t key_bitmask[(KEY_MAX+1)/8]; memset(key_bitmask, 0, sizeof(key_bitmask)); LOGV("Getting keys..."); if (ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(key_bitmask)), key_bitmask) >= 0) { |