summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-08-04 05:49:43 -0700
committerDianne Hackborn <hackbod@google.com>2009-08-04 20:53:52 -0700
commit0dd7cb4b4ef86eb7d4e837b1948501da66adeebe (patch)
treedf786b0b8b9b3ca4fda02e4bcb7b44db501a5150 /include
parenta2136d6b18a26ff34f2e5cd3f6c9413f0c96a5ba (diff)
downloadframeworks_base-0dd7cb4b4ef86eb7d4e837b1948501da66adeebe.zip
frameworks_base-0dd7cb4b4ef86eb7d4e837b1948501da66adeebe.tar.gz
frameworks_base-0dd7cb4b4ef86eb7d4e837b1948501da66adeebe.tar.bz2
Finish implementation of multiple pointer support for MotionEvent.
The major things going on here: - The MotionEvent API is now extended to included "pointer ID" information, for applications to keep track of individual fingers as they move up and down. PointerLocation has been updated to take advantage of this. - The input system now has logic to generate MotionEvents with the new ID information, synthesizing an identifier as new points are down and trying to keep pointer ids consistent across events by looking at the distance between the last and next set of pointers. - We now support the new multitouch driver protocol, and will use that instead of the old one if it is available. We do NOT use any finger id information coming from the driver, but always synthesize pointer ids in user space. (This is simply because we don't yet have a driver reporting this information from which to base an implementation on.) - Increase maximum number of fingers to 10. This code has only been used with a driver that reports up to 2, so no idea how more will actually work. - Oh and the input system can now detect and report physical DPAD devices.
Diffstat (limited to 'include')
-rw-r--r--include/ui/EventHub.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ui/EventHub.h b/include/ui/EventHub.h
index d62fd7d..bffba07 100644
--- a/include/ui/EventHub.h
+++ b/include/ui/EventHub.h
@@ -55,7 +55,9 @@ public:
CLASS_KEYBOARD = 0x00000001,
CLASS_ALPHAKEY = 0x00000002,
CLASS_TOUCHSCREEN = 0x00000004,
- CLASS_TRACKBALL = 0x00000008
+ CLASS_TRACKBALL = 0x00000008,
+ CLASS_TOUCHSCREEN_MT= 0x00000010,
+ CLASS_DPAD = 0x00000020
};
uint32_t getDeviceClasses(int32_t deviceId) const;
@@ -122,6 +124,7 @@ private:
};
device_t* getDevice(int32_t deviceId) const;
+ bool hasKeycode(device_t* device, int keycode) const;
// Protect all internal state.
mutable Mutex mLock;