From 0f9e2d89589f05847fb7dc808da1594f0961b5b4 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 12 Jun 2022 22:34:23 +0200 Subject: 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). --- src/game/src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') 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 = { -- cgit v1.2.3