summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-15 09:05:23 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-07-15 09:05:23 -0700
commit29b936e8a96ed62f617b87db417058c25147babd (patch)
treea060667bc66bf5a44c72c0243029fb3efd7d965e /include
parentf88cdf83b01355675b46b447891ca0ad686f26af (diff)
parentc968c3a9c782eaf44a5772cd388e5c690e5be4f3 (diff)
downloadframeworks_native-29b936e8a96ed62f617b87db417058c25147babd.zip
frameworks_native-29b936e8a96ed62f617b87db417058c25147babd.tar.gz
frameworks_native-29b936e8a96ed62f617b87db417058c25147babd.tar.bz2
Merge change 7353
* changes: Implement virtual button support.
Diffstat (limited to 'include')
-rw-r--r--include/ui/EventHub.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ui/EventHub.h b/include/ui/EventHub.h
index e12c4f1..d9c0af2 100644
--- a/include/ui/EventHub.h
+++ b/include/ui/EventHub.h
@@ -73,6 +73,9 @@ public:
int getKeycodeState(int key) const;
int getKeycodeState(int32_t deviceId, int key) const;
+ status_t scancodeToKeycode(int32_t deviceId, int scancode,
+ int32_t* outKeycode, uint32_t* outFlags) const;
+
// special type codes when devices are added/removed.
enum {
DEVICE_ADDED = 0x10000000,
@@ -121,7 +124,7 @@ private:
mutable Mutex mLock;
bool mHaveFirstKeyboard;
- int32_t mFirstKeyboardId; // the API is that the build in keyboard is id 0, so map it
+ int32_t mFirstKeyboardId; // the API is that the built-in keyboard is id 0, so map it
struct device_ent {
device_t* device;