aboutsummaryrefslogtreecommitdiff
path: root/src/input/CMakeLists.txt
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-20 12:34:35 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-20 13:52:14 +0200
commit14df82ee4db71509f4ec4968df439d4659ca1ac3 (patch)
treea1e210e2f553f758bd568d724fa84e99853dae22 /src/input/CMakeLists.txt
parenta01b22de747de67adfaa1e8ba221c94588963163 (diff)
downloadjancity-14df82ee4db71509f4ec4968df439d4659ca1ac3.tar.gz
Implement input component
It is required to redirect keyboard input (both physical or not) when a GUI line edit is focused. This means other components cannot be activated on key presses. Therefore, this new component is meant as a higher-level abstraction compared to the `keyboard`/`pad`/`mouse` components, which: - Implements the same APIs provided by `keyboard`, `mouse` and `pad`. - Returns the same results as the APIs above if no GUI element is focused, no input otherwise. Note: replacing calls to `keyboard`/`pad`/`mouse` with `input` will be implemented in a future commit.
Diffstat (limited to 'src/input/CMakeLists.txt')
-rw-r--r--src/input/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/CMakeLists.txt b/src/input/CMakeLists.txt
new file mode 100644
index 0000000..9de4843
--- /dev/null
+++ b/src/input/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_library(input
+ "src/input.c"
+)
+target_include_directories(input PUBLIC "inc")
+target_link_libraries(input PUBLIC keyboard mouse pad peripheral)