diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 13:43:18 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 16:56:30 +0200 |
| commit | 4c5630b0d409419d6de905379a06893eac64996b (patch) | |
| tree | 86e023c6b65e01c1c942f56639d1d38f1c80313f /src/camera/inc | |
| parent | 684587a3c360380e865f9e95cc811fb1276983af (diff) | |
| download | rts-4c5630b0d409419d6de905379a06893eac64996b.tar.gz | |
Remap calls to pad/mouse/keyboard to input
Diffstat (limited to 'src/camera/inc')
| -rw-r--r-- | src/camera/inc/camera.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/camera/inc/camera.h b/src/camera/inc/camera.h index 9841315..a108c98 100644 --- a/src/camera/inc/camera.h +++ b/src/camera/inc/camera.h @@ -1,8 +1,7 @@ #ifndef CAMERA_H #define CAMERA_H -#include <mouse.h> -#include <pad.h> +#include <input.h> #include <peripheral.h> #include <util.h> #include <stdbool.h> @@ -50,7 +49,7 @@ struct camera extern struct sprite cursor_sprite; -void camera_update(struct camera *cam, const union peripheral *p); +void camera_update(struct camera *cam, const union peripheral *p, const struct input *in); 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); |
