diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-12 22:34:23 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-12 23:18:57 +0200 |
| commit | 5226dc466354cd15dd50b3c11660db7cb38eabed (patch) | |
| tree | a885b4af03b88cb08709f87a1bb643241c505616 /src/peripheral/CMakeLists.txt | |
| parent | b2af4c6bccc4263e5c7aa96efd0f94e1b7a38231 (diff) | |
| download | jancity-5226dc466354cd15dd50b3c11660db7cb38eabed.tar.gz | |
Split peripheral-related logic into its own component
This has several advantages:
- `camera` no longer needs to define public functions for each
peripheral type.
- Peripheral-related is now no longer tighly coupled to human_player,
so peripheral logic can be reused elsewhere e.g.: on menus.
- Makes camera_update_touch consistent compared to equivalent functions,
since now `pan` has now been moved to `camera` (as it should be).
Diffstat (limited to 'src/peripheral/CMakeLists.txt')
| -rw-r--r-- | src/peripheral/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peripheral/CMakeLists.txt b/src/peripheral/CMakeLists.txt new file mode 100644 index 0000000..9666a5c --- /dev/null +++ b/src/peripheral/CMakeLists.txt @@ -0,0 +1,3 @@ +add_library(peripheral "src/peripheral.c") +target_include_directories(peripheral PUBLIC "inc") +target_link_libraries(peripheral PUBLIC pad mouse keyboard util) |
