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 | 0f9e2d89589f05847fb7dc808da1594f0961b5b4 (patch) | |
| tree | f80da866fdf50aae44009ccd1c858d2013b0a3d0 /src/game | |
| parent | 5794dbf40364ae442a22b6ac6c4732edd0e61f84 (diff) | |
| download | rts-0f9e2d89589f05847fb7dc808da1594f0961b5b4.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/game')
| -rw-r--r-- | src/game/src/game.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/src/game.c b/src/game/src/game.c index dede611..3c03dd5 100644 --- a/src/game/src/game.c +++ b/src/game/src/game.c @@ -26,7 +26,7 @@ int game(void) { const struct human_player_cfg cfg = { - .sel_periph = HUMAN_PLAYER_PERIPH_TOUCH, + .sel_periph = PERIPHERAL_TYPE_KEYBOARD_MOUSE, .padn = i, .pl = { |
