diff options
author | 2009-07-15 09:05:23 -0700 | |
---|---|---|
committer | 2009-07-15 09:05:23 -0700 | |
commit | 85d1f158267d64b5660e86fab0baf0432c1dcfbd (patch) | |
tree | 05c7ccd6fe0f43616538366bd52973c4ad22dccd /include/ui/EventHub.h | |
parent | 1f872d4e8675b918dafdd730100df7e865d9ce0b (diff) | |
parent | e3dd884815b2aaeec4241859722ab603e0b1466b (diff) |
Merge change 7353
* changes:
Implement virtual button support.
Diffstat (limited to 'include/ui/EventHub.h')
-rw-r--r-- | include/ui/EventHub.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ui/EventHub.h b/include/ui/EventHub.h index e12c4f13ea0d..d9c0af211703 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; |