summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2025-01-31 16:59:14 +0000
committer Harry Cutts <hcutts@google.com> 2025-02-07 15:08:30 +0000
commit34594c3cfb47e44a4451502c75b04813cf9d9a06 (patch)
tree947a62828cadad4e69f5a8a5a017b897237f102b /libs/gui/LayerState.cpp
parentc932b0717a30853f5ce2ad20c43f7a42d690ad32 (diff)
InputVerifier: make action_button a field of the action enum
Only MotionEvents with a button press or release action should have an action button. Let's express this in the data structure by making action_button a field of the relevant MotionActions, instead of a separate field of MotionEvent that could potentially be set on non-button actions. This involves moving the translation from input_bindgen constants to MotionAction into lib.rs, which I think makes more sense (as it keeps the language interfacing code contained there), but also means we have to move one piece of validation there too. Bug: 245989146 Test: $ atest --host libinput_rust_test Test: enable the verifier, check everything works as usual Flag: EXEMPT refactor Change-Id: Ida17429b0e12247b63a3ae44bab63e421d9fff0f
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions