Use BTN_TOUCH or BTN_TOOL_* to determine if touch active.
Bug: 5064702
Should not include stylus buttons in the condition.
Change-Id: If4d78a875b77da8bd59672d6fdbf5353004d0023
diff --git a/services/input/InputReader.h b/services/input/InputReader.h
index f5d095d..e82c4e7 100644
--- a/services/input/InputReader.h
+++ b/services/input/InputReader.h
@@ -526,7 +526,7 @@
uint32_t getButtonState() const;
int32_t getToolType() const;
- bool isActive() const;
+ bool isToolActive() const;
bool isHovering() const;
private: