From 49754db5a304d995c1cc108ff6f19e4ba4265572 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 1 Jul 2011 17:37:58 -0700 Subject: Handle stylus buttons and tool types. Added TOOL_TYPE_ERASER. Refactored the InputReader to share more code between the various input mappers that handle button states and to simplify the accumulator implementations by having each one only handle a single type of input. Removed the concept of direct/indirect tool types from the API. If we add it back, it should be done in a manner that is orthogonal to the tool type itself, perhaps as a flags field on the pointer. The device source may well provide sufficient information anyhow. Change-Id: I811c22d95e8304269b6ee4f6d11a6b04f3cfc1b2 --- native/include/android/input.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'native') diff --git a/native/include/android/input.h b/native/include/android/input.h index 0d8ea28..7a0dcd3 100644 --- a/native/include/android/input.h +++ b/native/include/android/input.h @@ -415,8 +415,7 @@ enum { AMOTION_EVENT_TOOL_TYPE_FINGER = 1, AMOTION_EVENT_TOOL_TYPE_STYLUS = 2, AMOTION_EVENT_TOOL_TYPE_MOUSE = 3, - AMOTION_EVENT_TOOL_TYPE_INDIRECT_FINGER = 4, - AMOTION_EVENT_TOOL_TYPE_INDIRECT_STYLUS = 5, + AMOTION_EVENT_TOOL_TYPE_ERASER = 4, }; /* -- cgit v1.1