summaryrefslogtreecommitdiffstats
path: root/include/ui/InputDispatcher.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-11 18:32:20 -0700
committerJeff Brown <jeffbrown@google.com>2010-10-11 18:32:20 -0700
commit9c9f1a3ba1bc19754e4d38cb27a537d4dfedc0fe (patch)
treefc519d8f2f97dc3fa6007f16e07cc05b09849109 /include/ui/InputDispatcher.h
parente20c9e0264190f94324197a8271cf03811a4ca58 (diff)
downloadframeworks_base-9c9f1a3ba1bc19754e4d38cb27a537d4dfedc0fe.zip
frameworks_base-9c9f1a3ba1bc19754e4d38cb27a537d4dfedc0fe.tar.gz
frameworks_base-9c9f1a3ba1bc19754e4d38cb27a537d4dfedc0fe.tar.bz2
Track input state when transferring touch focus.
Copies the input state to the destination window and sends synthesic cancelation events to the source window. Change-Id: Ia75820b0d756ed5d6cd22dce7830251ac85141ed
Diffstat (limited to 'include/ui/InputDispatcher.h')
-rw-r--r--include/ui/InputDispatcher.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/InputDispatcher.h b/include/ui/InputDispatcher.h
index 2c22cad..63185d3 100644
--- a/include/ui/InputDispatcher.h
+++ b/include/ui/InputDispatcher.h
@@ -757,6 +757,9 @@ private:
// Clears the current state.
void clear();
+ // Copies pointer-related parts of the input state to another instance.
+ void copyPointerStateTo(InputState& other) const;
+
private:
struct KeyMemento {
int32_t deviceId;