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 | 87b4ef3a15af505f5ed5150ee1dadd2e2bc94c17 (patch) | |
| tree | f3d317088514089d0f84fb553cf9e307dffca549 /src/camera/inc | |
| parent | 14df82ee4db71509f4ec4968df439d4659ca1ac3 (diff) | |
| download | jancity-87b4ef3a15af505f5ed5150ee1dadd2e2bc94c17.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); |
