diff options
author | Chris Tate <ctate@android.com> | 2010-07-07 17:43:12 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-07-07 17:43:12 -0700 |
commit | b17f4dcfb3edba25bd8c30e60449b9bbcd600a57 (patch) | |
tree | 0820fc428a7c001e5eb8796ff806ee78f1b1638f /include | |
parent | f3f25bf80b7d21f12442da8f82d17c79dd371692 (diff) | |
parent | 00fa7bdd69f0868fd17ea7c881c771d785b2fbbd (diff) | |
download | frameworks_base-b17f4dcfb3edba25bd8c30e60449b9bbcd600a57.zip frameworks_base-b17f4dcfb3edba25bd8c30e60449b9bbcd600a57.tar.gz frameworks_base-b17f4dcfb3edba25bd8c30e60449b9bbcd600a57.tar.bz2 |
Merge "More native input dispatch work." into gingerbread
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/InputReader.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/ui/InputReader.h b/include/ui/InputReader.h index 781da35..03c8112 100644 --- a/include/ui/InputReader.h +++ b/include/ui/InputReader.h @@ -250,7 +250,13 @@ struct InputDevice { nsecs_t downTime; struct CurrentVirtualKeyState { - bool down; + enum Status { + STATUS_UP, + STATUS_DOWN, + STATUS_CANCELED + }; + + Status status; nsecs_t downTime; int32_t keyCode; int32_t scanCode; @@ -295,6 +301,7 @@ struct InputDevice { void calculatePointerIds(); bool isPointInsideDisplay(int32_t x, int32_t y) const; + const InputDevice::VirtualKey* findVirtualKeyHit() const; }; InputDevice(int32_t id, uint32_t classes, String8 name); @@ -390,11 +397,9 @@ public: virtual bool getDisplayInfo(int32_t displayId, int32_t* width, int32_t* height, int32_t* orientation) = 0; - /* Provides feedback for a virtual key. + /* Provides feedback for a virtual key down. */ - virtual void virtualKeyFeedback(nsecs_t when, int32_t deviceId, - int32_t action, int32_t flags, int32_t keyCode, - int32_t scanCode, int32_t metaState, nsecs_t downTime) = 0; + virtual void virtualKeyDownFeedback() = 0; /* Intercepts a key event. * The policy can use this method as an opportunity to perform power management functions |