commit | 033e3ec97ab78e505f3a1a37b8a7ed2fa27fa5b3 | [log] [tgz] |
---|---|---|
author | Arpit Singh <arpitks@google.com> | Wed Apr 26 14:43:16 2023 +0000 |
committer | Arpit Singh <arpitks@google.com> | Thu May 18 18:54:26 2023 +0000 |
tree | ee67596fde43e7aaede49f83f8dad3b4477a96c8 | |
parent | bb319326a6a8235e0227d404e428f9fcd23cfaec [diff] [blame] |
InputMapper refactor: KeyboardInputMapper Add a factory method for KeyboardInputMapper to be configured on initilisation Test: m checkinput && atest libinput_tests inputflinger_tests Bug: 256009910 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:67ca684ad1e5d6286bdbae568ee0fc97be40d3c1) Merged-In: Iceb8676542de85309c208af93ee7cc385e46a067 Change-Id: Iceb8676542de85309c208af93ee7cc385e46a067
diff --git a/services/inputflinger/reader/InputDevice.cpp b/services/inputflinger/reader/InputDevice.cpp index c8c5115..0a64a1c 100644 --- a/services/inputflinger/reader/InputDevice.cpp +++ b/services/inputflinger/reader/InputDevice.cpp
@@ -482,8 +482,8 @@ } if (keyboardSource != 0) { - mappers.push_back(std::make_unique<KeyboardInputMapper>(contextPtr, readerConfig, - keyboardSource, keyboardType)); + mappers.push_back(createInputMapper<KeyboardInputMapper>(contextPtr, readerConfig, + keyboardSource, keyboardType)); } // Cursor-like devices.