From ef1a90de7aa6e77ce90b8015011628014ede9f2c Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Wed, 18 May 2022 12:30:16 -0700 Subject: Refactor input code for require_kernel_config parameter As part of the next commit to allow kl files to specify a required kernel config, some small refactorings were done. Move those here to a separate CL to make it easier to review. Bug: 228005926 Test: atest libinput_tests Merged-In: Iab06bb6ef44807308ee2b3e6b8a0c780bb748f09 Change-Id: Iab06bb6ef44807308ee2b3e6b8a0c780bb748f09 (cherry picked from commit 5ed8eaab67ad7ec3ac1110d696f5d89596a5a887) --- include/input/KeyLayoutMap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/input/KeyLayoutMap.h') diff --git a/include/input/KeyLayoutMap.h b/include/input/KeyLayoutMap.h index b2bd535cbf..d1925f4eee 100644 --- a/include/input/KeyLayoutMap.h +++ b/include/input/KeyLayoutMap.h @@ -21,7 +21,6 @@ #include #include #include -#include #include #include @@ -66,7 +65,6 @@ struct AxisInfo { class KeyLayoutMap { public: static base::Result> load(const std::string& filename); - static base::Result> load(Tokenizer* tokenizer); static base::Result> loadContents(const std::string& filename, const char* contents); @@ -84,6 +82,8 @@ public: virtual ~KeyLayoutMap(); private: + static base::Result> load(Tokenizer* tokenizer); + struct Key { int32_t keyCode; uint32_t flags; -- cgit v1.2.3-59-g8ed1b