summaryrefslogtreecommitdiff
path: root/libs/input/Input.cpp
diff options
context:
space:
mode:
author Antonio Kantek <kanant@google.com> 2021-11-05 18:26:17 -0700
committer Antonio Kantek <kanant@google.com> 2021-11-11 15:46:26 -0800
commit3cfec7b162d40a53880f3cbaf863b0b39027db3d (patch)
tree228bf2b16779a7a5ced2b962d62e20faa8ea5410 /libs/input/Input.cpp
parenta0b0a06870f02da8edbc53962751075fa21db0dd (diff)
TouchMode (6.2/n) Fully detaching touch mode from focus event (native)
Bug: 193718270 Test: atest inputflinger_tests Test: atest libinput_tests Test: atest FrameworksCoreTests Test: atest CtsInputMethodTestCases Test: atest CtsInputTestCases Test: atest CtsSecurityTestCases Test: atest CtsWindowManagerDeviceTestCases Change-Id: I334c63d781ee8e8c13d21cc4a6cf323d885fc985
Diffstat (limited to 'libs/input/Input.cpp')
-rw-r--r--libs/input/Input.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/input/Input.cpp b/libs/input/Input.cpp
index 24a77209c4..c7f77d42fe 100644
--- a/libs/input/Input.cpp
+++ b/libs/input/Input.cpp
@@ -820,17 +820,15 @@ float MotionEvent::calculateTransformedAxisValue(int32_t axis, uint32_t source,
// --- FocusEvent ---
-void FocusEvent::initialize(int32_t id, bool hasFocus, bool inTouchMode) {
+void FocusEvent::initialize(int32_t id, bool hasFocus) {
InputEvent::initialize(id, ReservedInputDeviceId::VIRTUAL_KEYBOARD_ID, AINPUT_SOURCE_UNKNOWN,
ADISPLAY_ID_NONE, INVALID_HMAC);
mHasFocus = hasFocus;
- mInTouchMode = inTouchMode;
}
void FocusEvent::initialize(const FocusEvent& from) {
InputEvent::initialize(from);
mHasFocus = from.mHasFocus;
- mInTouchMode = from.mInTouchMode;
}
// --- CaptureEvent ---