summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-11-10 16:53:45 -0800
committerJeff Brown <jeffbrown@google.com>2010-11-12 14:53:43 -0800
commit46e75294d540fe807d78aec2582ae02cc38c7d42 (patch)
tree260678b7532242c8dd31e3aba47710e9516a3c12 /include/ui
parent1a22bdb01ac4068c2876fe2d02f3c4c729669a1c (diff)
downloadframeworks_base-46e75294d540fe807d78aec2582ae02cc38c7d42.zip
frameworks_base-46e75294d540fe807d78aec2582ae02cc38c7d42.tar.gz
frameworks_base-46e75294d540fe807d78aec2582ae02cc38c7d42.tar.bz2
Enable touch splitting for all windows by default.
New default only applies to applications with targetSdkVersion >= HONEYCOMB. Old applications default to no touch splitting for their windows. In addition, enabled split touch for various system windows. Bug: 3049580 Change-Id: Idc8da9baa2cd8e1e4e76af8967d7b6a5ccb94427
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/InputDispatcher.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ui/InputDispatcher.h b/include/ui/InputDispatcher.h
index d09ff41..15a3925 100644
--- a/include/ui/InputDispatcher.h
+++ b/include/ui/InputDispatcher.h
@@ -219,6 +219,8 @@ struct InputWindow {
* motion events to be delivered to them with AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED.
*/
bool isTrustedOverlay() const;
+
+ bool supportsSplitTouch() const;
};
@@ -946,7 +948,7 @@ private:
struct TouchedWindow {
const InputWindow* window;
int32_t targetFlags;
- BitSet32 pointerIds;
+ BitSet32 pointerIds; // zero unless target flag FLAG_SPLIT is set
sp<InputChannel> channel;
};
struct TouchState {