aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_platform.h
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-11 14:30:48 -0400
committeriamcheeseman <[email protected]>2026-05-11 14:30:48 -0400
commitf4017a52d90567c2df482c5d553076dc706ac59b (patch)
tree6cce9684cee03370188e6c46e745fabb64007a46 /teensy/teensy_platform.h
parentda2585ddc49abb80e7457ccc2805fff884eb2021 (diff)
Allow user input
Diffstat (limited to 'teensy/teensy_platform.h')
-rw-r--r--teensy/teensy_platform.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/teensy/teensy_platform.h b/teensy/teensy_platform.h
index 7733be1..2128c5e 100644
--- a/teensy/teensy_platform.h
+++ b/teensy/teensy_platform.h
@@ -1,6 +1,9 @@
#ifndef TEENSY_PLATFORM_H_
#define TEENSY_PLATFORM_H_
+#include "teensy.h"
+#include "teensy_context.h"
+
// This platform functions are to be implemented by a platform library.
void ty_platform_init(struct ty_ctx *ctx);
@@ -8,5 +11,9 @@ void ty_platform_deinit(void);
void ty_platform_frame(struct ty_image img);
bool ty_platform_os_wants_quit(void);
double ty_platform_get_time(void);
+bool ty_platform_is_button_down(enum ty_button btn);
+
+// Optional, no editor if not implemented
+struct ty_vec2i ty_platform_get_mouse(void);
#endif // TEENSY_PLATFORM_H_