| commit | 09a8fe42ba1d218c2f445e4fd5bc387e260ae067 | [log] [tgz] |
|---|---|---|
| author | Siarhei Vishniakou <svv@google.com> | Thu Jul 21 17:27:03 2022 -0700 |
| committer | Siarhei Vishniakou <svv@google.com> | Mon Mar 27 13:35:17 2023 +0000 |
| tree | 4db99b55ca254cab7ab7ad7fc975f16ce0c20488 | |
| parent | 3f389998cde6eb020c953ef9c975edac8629060d [diff] [blame] |
Convert tool type to enum class For better type safety, use enum class when sending tool type. Bug: 198472780 Test: atest libinput_tests inputflinger_tests Change-Id: I371f08087b9513b6f75966c124de77bc12f8324e
diff --git a/services/inputflinger/reader/mapper/RotaryEncoderInputMapper.cpp b/services/inputflinger/reader/mapper/RotaryEncoderInputMapper.cpp index 94cc145..c0a35b1 100644 --- a/services/inputflinger/reader/mapper/RotaryEncoderInputMapper.cpp +++ b/services/inputflinger/reader/mapper/RotaryEncoderInputMapper.cpp
@@ -121,7 +121,7 @@ PointerProperties pointerProperties; pointerProperties.clear(); pointerProperties.id = 0; - pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_UNKNOWN; + pointerProperties.toolType = ToolType::UNKNOWN; uint32_t policyFlags = 0; if (getDeviceContext().isExternal()) {