diff options
| author | 2010-09-26 22:20:12 -0700 | |
|---|---|---|
| committer | 2010-09-26 22:20:12 -0700 | |
| commit | d1b0a2bfe50e61241fab6a571941c207232d9212 (patch) | |
| tree | 68de1f752582e7cbdc4c4b46b2e97d2abcb2d11d /include/ui/Input.h | |
| parent | a939afe2124b8e5be01be46f97b1bbf2fad5d65b (diff) | |
Add suuport for splitting touch events across windows.
This feature is currently used to enable dragging the start and end
selection handles of a TextView at the same time. Could be used for
other things later.
Deleted some dead code in ArrowKeyMovementMethod and CursorControllers.
Change-Id: I930accd97ca1ca1917aab8a807db2c950fc7b409
Diffstat (limited to 'include/ui/Input.h')
| -rw-r--r-- | include/ui/Input.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h index b587e94db5..21baf32599 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -40,10 +40,18 @@ enum { /* * Maximum number of pointers supported per motion event. + * Smallest number of pointers is 1. */ #define MAX_POINTERS 10 /* + * Maximum pointer id value supported in a motion event. + * Smallest pointer id is 0. + * (This is limited by our use of BitSet32 to track pointer assignments.) + */ +#define MAX_POINTER_ID 31 + +/* * Declare a concrete type for the NDK's input event forward declaration. */ struct AInputEvent { |