aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-03-30 08:36:16 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-03-31 06:50:33 +0200
commit45337576dff70a3b5991b79d0fe13420110b3594 (patch)
treed3f18d3d92a9da8c7d2dd9e596b44eb579cf368c /src/game
parent82c61e3d1d97c6e829bfbe0e35539abfe75d1380 (diff)
downloadrts-45337576dff70a3b5991b79d0fe13420110b3594.tar.gz
Implement touch controls
Diffstat (limited to 'src/game')
-rw-r--r--src/game/src/game.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/src/game.c b/src/game/src/game.c
index b583c5c..e1a316e 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_KEYBOARD_MOUSE,
+ .sel_periph = HUMAN_PLAYER_PERIPH_TOUCH,
.padn = i,
.pl =
{
@@ -86,8 +86,7 @@ int game(void)
terrain_update(&map);
if (terrain_render(&map, &h->cam)
- || human_player_render(h, &o)
- || cursor_render(&h->cam.cursor))
+ || human_player_render(h, &o))
goto end;
/* TODO: render AI players. */