commit 8ddef5d
uint
·
2026-06-09 17:48:11 +0000 UTC
parent af2ad6b
Rename maus_keys.h->maus_input.h, add MausCursor, MausCursorState
1 files changed,
+17,
-2
R maus_keys.h =>
maus_input.h
+17,
-2
1@@ -1,5 +1,7 @@
2-#ifndef MAUS_KEYS_H
3-#define MAUS_KEYS_H
4+#ifndef MAUS_INPUT_H
5+#define MAUS_INPUT_H
6+
7+#include <stdint.h>
8
9 typedef enum {
10 MAUS_KEY_NONE = 0,
11@@ -51,5 +53,18 @@ typedef enum {
12 MAUS_KEY_LAST,
13 } MausKey;
14
15+typedef struct {
16+ int32_t x;
17+ int32_t y;
18+} MausCursor;
19+
20+typedef enum {
21+ MAUS_CURSOR_STATE_VISIBLE,
22+ MAUS_CURSOR_STATE_HIDDEN,
23+ MAUS_CURSOR_STATE_LOCKED,
24+ MAUS_CURSOR_STATE_FREE,
25+} MausCursorState;
26+
27+
28 #endif /* MAUS_KEYS_H */
29