summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-09-09 20:33:43 -0700
committerJeff Brown <jeffbrown@google.com>2012-09-10 15:48:47 -0700
commit83d616a9c7b9505153d258511eb5c16b552e268d (patch)
tree4df9620550008dc0e3e0daf21f442b9fe6cc8051 /include
parent7a8cce3d8a6fb781d840ddf60324a301f5a3f2d9 (diff)
downloadframeworks_base-83d616a9c7b9505153d258511eb5c16b552e268d.zip
frameworks_base-83d616a9c7b9505153d258511eb5c16b552e268d.tar.gz
frameworks_base-83d616a9c7b9505153d258511eb5c16b552e268d.tar.bz2
Make input system aware of multiple displays.
The input system needs to know about the window that has focus, even if it is on a secondary display. So now we send it the list of all windows and indicate which display they are on. We filter the list of windows as necessary when delivering touch events. To keep things simple, monitor input channels and input filters are not supported except on the main display. We also do not pass the display id to applications; it is only used inside the input system for now. Properly scale touch coordinates based on the viewport. This will be needed to ensure that touch works on external display as well as when the internal display is being used to simulate a different resolution. Change-Id: I1815579a52fcc852c519b5391fc7ab8767c2dc59
Diffstat (limited to 'include')
-rw-r--r--include/androidfw/Input.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/androidfw/Input.h b/include/androidfw/Input.h
index 2c91fab..e88835e 100644
--- a/include/androidfw/Input.h
+++ b/include/androidfw/Input.h
@@ -49,6 +49,15 @@ enum {
};
enum {
+ /* Used when a motion event is not associated with any display.
+ * Typically used for non-pointer events. */
+ ADISPLAY_ID_NONE = -1,
+
+ /* The default display id. */
+ ADISPLAY_ID_DEFAULT = 0,
+};
+
+enum {
/*
* Indicates that an input device has switches.
* This input source flag is hidden from the API because switches are only used by the system