summaryrefslogtreecommitdiff
path: root/libs/input/VelocityControl.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-01-12 11:58:52 -0800
committer Siarhei Vishniakou <svv@google.com> 2023-01-12 14:35:52 -0800
commit657a17320045f45ce4a71a6d4ea5daddc302d223 (patch)
tree8b91bbccc32d28214755b5b54f97084bccf61bb2 /libs/input/VelocityControl.cpp
parent6e85d515d4117d011b3e9b1463213d59345244e6 (diff)
Use std::optional for active pointer id
The active pointer id is not always valid. Rather than using a magic value for it (-1), let's use std::optional. Some other fixes: - convert to enum class, for better type safety / switch checking - ident switch statements It's necessary to ident switch statements to avoid weird clang-format problems when changing code that follows those sections. Bug: 167946721 Test: m libinput_tests && $ANDROID_HOST_OUT/nativetest64/libinput_tests/libinput_tests Change-Id: I6b78301e2c1d2fba1a789fa9491f7d6ab8b37d02
Diffstat (limited to 'libs/input/VelocityControl.cpp')
0 files changed, 0 insertions, 0 deletions