Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src/types.c
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2025-04-06 16:42:26 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2025-04-06 16:42:26 +0100
commit775d80fe2ea7c541eb3f1180e02a48ae5498743e (patch)
treeeb0c905006fb207404f6676f05ba6393ffa7a0fd /src/types.c
parent8c4d5838e67d62775983fb46a64813d8b6bceb28 (diff)
downloadldjam57-775d80fe2ea7c541eb3f1180e02a48ae5498743e.tar
Improves how click creates stuff
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c3
1 files changed, 2 insertions, 1 deletions
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)))