diff options
author | 2009-01-15 16:12:10 -0800 | |
---|---|---|
committer | 2009-01-15 16:12:10 -0800 | |
commit | 8a7a67538a9977c892389bfcde76a8372aa0b56c (patch) | |
tree | 0782f82f223ddeafa9b08bd2121ded38212f67f7 /libs/ui/EventHub.cpp | |
parent | 276293246ea9cbc0a578a7697cc48930376ec0e9 (diff) |
auto import from //branches/cupcake/...@126645
Diffstat (limited to 'libs/ui/EventHub.cpp')
-rw-r--r-- | libs/ui/EventHub.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ui/EventHub.cpp b/libs/ui/EventHub.cpp index abe74077f9..700aa3a8ad 100644 --- a/libs/ui/EventHub.cpp +++ b/libs/ui/EventHub.cpp @@ -16,7 +16,7 @@ //#define LOG_NDEBUG 0 #include <ui/EventHub.h> -#include <hardware/power.h> +#include <hardware_legacy/power.h> #include <cutils/properties.h> #include <utils/IServiceManager.h> @@ -520,6 +520,10 @@ int EventHub::open_device(const char *deviceName) for (int i=0; i<((BTN_MISC+7)/8); i++) { if (key_bitmask[i] != 0) { device->classes |= CLASS_KEYBOARD; + // 'Q' key support = cheap test of whether this is an alpha-capable kbd + if (test_bit(KEY_Q, key_bitmask)) { + device->classes |= CLASS_ALPHAKEY; + } break; } } |