From 9c9f1a3ba1bc19754e4d38cb27a537d4dfedc0fe Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 11 Oct 2010 18:32:20 -0700 Subject: 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 --- include/ui/InputDispatcher.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ui/InputDispatcher.h') 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; -- cgit v1.1