diff options
author | 2010-10-21 16:22:58 -0700 | |
---|---|---|
committer | 2010-10-21 16:22:58 -0700 | |
commit | bd3f24e7f1043fd04204b94f32136829d0c96514 (patch) | |
tree | 9e5a0fe599b704f0c80f81ef6cf287c6928f7c64 /libs/ui/EventHub.cpp | |
parent | 82a3307a06dcaba40104b6d41f1e197365c53009 (diff) | |
parent | bc9c82fb7960b99d6c21839b337360fbf6f8d9a5 (diff) |
am 1d79a9d9: Use correct size of GAMEPAD_KEYCODES
Merge commit '1d79a9d9f85f932a1fd6dcddba335450b65ba4e6' into gingerbread-plus-aosp
* commit '1d79a9d9f85f932a1fd6dcddba335450b65ba4e6':
Use correct size of GAMEPAD_KEYCODES
Diffstat (limited to 'libs/ui/EventHub.cpp')
-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 944731dba6..5c618fb50f 100644 --- a/libs/ui/EventHub.cpp +++ b/libs/ui/EventHub.cpp @@ -818,7 +818,7 @@ int EventHub::openDevice(const char *deviceName) { } // See if this device has a gamepad. - for (size_t i = 0; i < sizeof(GAMEPAD_KEYCODES); i++) { + for (size_t i = 0; i < sizeof(GAMEPAD_KEYCODES)/sizeof(GAMEPAD_KEYCODES[0]); i++) { if (hasKeycodeLocked(device, GAMEPAD_KEYCODES[i])) { device->classes |= INPUT_DEVICE_CLASS_GAMEPAD; break; |