From 87b4ef3a15af505f5ed5150ee1dadd2e2bc94c17 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 20 Sep 2022 13:43:18 +0200 Subject: Remap calls to pad/mouse/keyboard to input --- src/gui/inc/gui.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/inc/gui.h') 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 #include +#include #include #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 -- cgit v1.2.3