diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 12:34:35 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 13:52:14 +0200 |
| commit | 684587a3c360380e865f9e95cc811fb1276983af (patch) | |
| tree | c46fe7ade38694cf80b9dce151fdbfd0720b6036 /src/input/CMakeLists.txt | |
| parent | b8d3eff412c1c91fa09435238998ba1fc17df3fe (diff) | |
| download | rts-684587a3c360380e865f9e95cc811fb1276983af.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.txt | 5 |
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) |
