From ce8b1c43caf9e97fe0e93a51d6ca6b82460305d7 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Wed, 30 Mar 2022 08:36:16 +0200 Subject: Implement touch controls --- src/camera/inc/camera.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/camera/inc') diff --git a/src/camera/inc/camera.h b/src/camera/inc/camera.h index ec2739b..93ad740 100644 --- a/src/camera/inc/camera.h +++ b/src/camera/inc/camera.h @@ -35,6 +35,7 @@ extern struct sprite cursor_sprite; void camera_update_pad(struct camera *cam, const struct pad *p); void camera_update_mouse(struct camera *cam, const struct mouse *m); +bool camera_update_touch(struct camera *cam, const struct mouse *m); bool camera_translate(const struct camera *cam, const struct util_rect *dim, short *x, short *y); void cursor_init(struct cursor *c); bool cursor_collision(const struct camera *cam, const struct util_rect *d); -- cgit v1.2.3