summaryrefslogtreecommitdiff
path: root/example.h
diff options
context:
space:
mode:
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