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/gui/privinc | |
| parent | 14df82ee4db71509f4ec4968df439d4659ca1ac3 (diff) | |
| download | jancity-87b4ef3a15af505f5ed5150ee1dadd2e2bc94c17.tar.gz | |
Remap calls to pad/mouse/keyboard to input
Diffstat (limited to 'src/gui/privinc')
| -rw-r--r-- | src/gui/privinc/gui_private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/privinc/gui_private.h b/src/gui/privinc/gui_private.h index af18dcd..c03d04c 100644 --- a/src/gui/privinc/gui_private.h +++ b/src/gui/privinc/gui_private.h @@ -2,6 +2,9 @@ #define GUI_PRIVATE_H #include <gui.h> +#include <input.h> +#include <peripheral.h> +#include <camera.h> #ifdef __cplusplus extern "C" @@ -9,6 +12,10 @@ extern "C" #endif void gui_coords(const struct gui_common *g, short *x, short *y); +bool gui_pressed(const struct gui_common *g, const struct input *in, + const union peripheral *p, const struct camera *cam, short w, short h); +bool gui_released(const struct gui_common *g, const union peripheral *p, + const struct camera *cam, short w, short h); #ifdef __cplusplus } |
