diff options
Diffstat (limited to 'libs/input/Input.cpp')
| -rw-r--r-- | libs/input/Input.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/input/Input.cpp b/libs/input/Input.cpp index db86c8ea30..9fd25f9cb7 100644 --- a/libs/input/Input.cpp +++ b/libs/input/Input.cpp @@ -29,6 +29,17 @@ namespace android { +const char* motionClassificationToString(MotionClassification classification) { + switch (classification) { + case MotionClassification::NONE: + return "NONE"; + case MotionClassification::AMBIGUOUS_GESTURE: + return "AMBIGUOUS_GESTURE"; + case MotionClassification::DEEP_PRESS: + return "DEEP_PRESS"; + } +} + // --- InputEvent --- void InputEvent::initialize(int32_t deviceId, int32_t source, int32_t displayId) { |