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 | 45337576dff70a3b5991b79d0fe13420110b3594 (patch) | |
| tree | d3f18d3d92a9da8c7d2dd9e596b44eb579cf368c /src/camera/inc | |
| parent | 82c61e3d1d97c6e829bfbe0e35539abfe75d1380 (diff) | |
| download | rts-45337576dff70a3b5991b79d0fe13420110b3594.tar.gz | |
Implement touch controls
Diffstat (limited to 'src/camera/inc')
| -rw-r--r-- | src/camera/inc/camera.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
