From 775d80fe2ea7c541eb3f1180e02a48ae5498743e Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Sun, 6 Apr 2025 16:42:26 +0100 Subject: Improves how click creates stuff --- src/types.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/types.c') diff --git a/src/types.c b/src/types.c index bfe0d7d..b50228c 100644 --- a/src/types.c +++ b/src/types.c @@ -56,6 +56,7 @@ enum { typedef struct { int width, height; + int mousex, mousey; } UI; typedef enum { @@ -82,13 +83,13 @@ enum { INPUT_CLICK, INPUT_RCLICK, INPUT_PAUSE_PLAY, + INPUT_MOVE, }; typedef struct { State state; UI ui; int input; - int mousex, mousey; } Game; #define new(a, c, t) ((t *) alloc(a, c, sizeof(t), _Alignof(t))) -- cgit v1.2.3