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/inc | |
| parent | 14df82ee4db71509f4ec4968df439d4659ca1ac3 (diff) | |
| download | jancity-87b4ef3a15af505f5ed5150ee1dadd2e2bc94c17.tar.gz | |
Remap calls to pad/mouse/keyboard to input
Diffstat (limited to 'src/gui/inc')
| -rw-r--r-- | src/gui/inc/gui.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/inc/gui.h b/src/gui/inc/gui.h index 84a6c66..9093572 100644 --- a/src/gui/inc/gui.h +++ b/src/gui/inc/gui.h @@ -3,6 +3,7 @@ #include <camera.h> #include <gfx.h> +#include <input.h> #include <peripheral.h> #ifdef __cplusplus @@ -16,7 +17,7 @@ struct gui_common { void (*add_child)(struct gui_common *parent, struct gui_common *child); int (*update)(struct gui_common *, const union peripheral *, - const struct camera *); + const struct camera *, struct input *); int (*render)(const struct gui_common *); void (*get_dim)(const struct gui_common *, short *w, short *h); } *cb; @@ -29,7 +30,7 @@ struct gui_common void gui_add_child(struct gui_common *parent, struct gui_common *child); void gui_add_sibling(struct gui_common *g, struct gui_common *sibling); int gui_update(struct gui_common *g, const union peripheral *p, - const struct camera *c); + const struct camera *c, struct input *in); int gui_render(const struct gui_common *g); #ifdef __cplusplus |
