From 14df82ee4db71509f4ec4968df439d4659ca1ac3 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 20 Sep 2022 12:34:35 +0200 Subject: 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. --- src/input/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/input/CMakeLists.txt (limited to 'src/input/CMakeLists.txt') 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) -- cgit v1.2.3