diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-03-30 08:36:16 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-03-31 06:50:33 +0200 |
| commit | ce8b1c43caf9e97fe0e93a51d6ca6b82460305d7 (patch) | |
| tree | 462ed058f56f76bff22ed55da34a36dc348a04dc /src/game | |
| parent | 1950fe7b0679c6b6486cc7b25bef813db2b1bb4e (diff) | |
| download | jancity-ce8b1c43caf9e97fe0e93a51d6ca6b82460305d7.tar.gz | |
Implement touch controls
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/src/game.c | 5 |
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. */ |
