summaryrefslogtreecommitdiffstats
path: root/native/include/android
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-20 15:33:38 -0700
committerJeff Brown <jeffbrown@google.com>2010-10-23 03:52:57 -0700
commitc3db858de9fa152480b9cf53c8c0cb793a280722 (patch)
treeba337dd2df79d211a940727c5c93c112cf0de77d /native/include/android
parentb6a2256e5461160a89d077b761d3253d95ce869f (diff)
downloadframeworks_base-c3db858de9fa152480b9cf53c8c0cb793a280722.zip
frameworks_base-c3db858de9fa152480b9cf53c8c0cb793a280722.tar.gz
frameworks_base-c3db858de9fa152480b9cf53c8c0cb793a280722.tar.bz2
Add unit tests for native input and fix bugs identified.
Fixed a bug where we would lose the first touch point when swiping out of the virtual key area. Fixed a bug where we would not send an ACTION_MOVE event in cases where individual pointers went down/up and the remaining pointers actually moved. This is important since many applications do not handle pointer movements during ACTION_POINTER_DOWN or ACTION_POINTER_UP. In the case of ACTION_POINTER_UP the movement was completely lost since all pointers were dispatched using their old location rather than the new location. Improved motion event validation to check for duplicate pointer ids. Added an input source constant that was missing from the NDK api but defined in the framework api. Added a timestamp when reporting added/removed devices in EventHub. Bug: 3070082 Change-Id: I3206a030f43b7616e2f48006e5a9d522c4d92e56
Diffstat (limited to 'native/include/android')
-rw-r--r--native/include/android/input.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/native/include/android/input.h b/native/include/android/input.h
index 5580700..7df13c3 100644
--- a/native/include/android/input.h
+++ b/native/include/android/input.h
@@ -306,6 +306,8 @@ enum {
AINPUT_SOURCE_MOUSE = 0x00002000 | AINPUT_SOURCE_CLASS_POINTER,
AINPUT_SOURCE_TRACKBALL = 0x00010000 | AINPUT_SOURCE_CLASS_NAVIGATION,
AINPUT_SOURCE_TOUCHPAD = 0x00100000 | AINPUT_SOURCE_CLASS_POSITION,
+
+ AINPUT_SOURCE_ANY = 0xffffff00,
};
/*