diff options
author | Dianne Hackborn <hackbod@google.com> | 2009-08-04 05:49:43 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2009-08-04 20:53:52 -0700 |
commit | c591736c66cbd4320fc96573fda28bec2b4d4100 (patch) | |
tree | c7df67f7338a856b8e0fee9b0b53adc3a2838fcd /include | |
parent | e8ce92bbe07ae4df78fc6ce4ec33ed5e2baa2e46 (diff) | |
download | frameworks_native-c591736c66cbd4320fc96573fda28bec2b4d4100.zip frameworks_native-c591736c66cbd4320fc96573fda28bec2b4d4100.tar.gz frameworks_native-c591736c66cbd4320fc96573fda28bec2b4d4100.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.h | 5 |
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; |