summaryrefslogtreecommitdiff
path: root/example.h
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-09-14 13:04:56 +0200
committerkkard2 <[email protected]>2025-09-14 13:04:56 +0200
commit8af35e5ed10f1b4cbef908948355a2832ea36fbe (patch)
tree39893f071aee046dfad11bdf1494873e9ec49da1 /example.h
parentd30d4c2c3832c1e4df1d4fb266b04ca4dfdd828b (diff)
uv
Diffstat (limited to 'example.h')
-rw-r--r--example.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/example.h b/example.h
index 5c34ea1..df671e1 100644
--- a/example.h
+++ b/example.h
@@ -1,6 +1,8 @@
+#include <stdint.h>
+
void init();
void draw_frame(sponge_Texture c);
-
+void mouse_move(int32_t x, int32_t y);
#ifdef SPONGE_EXAMPLE_IMPLEMENTATION
@@ -8,4 +10,8 @@ void draw_frame(sponge_Texture c);
void init() {}
#endif // SPONGE_EXAMPLE_INIT_DEFINED
+#ifndef SPONGE_EXAMPLE_MOUSE_MOVE_DEFINED
+void mouse_move(int32_t x, int32_t y) {}
+#endif // SPONGE_EXAMPLE_MOUSE_MOVE_DEFINED
+
#endif // SPONGE_EXAMPLE_IMPLEMENTATION