aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_context.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_context.h
parentda2585ddc49abb80e7457ccc2805fff884eb2021 (diff)
Allow user input
Diffstat (limited to 'teensy/teensy_context.h')
-rw-r--r--teensy/teensy_context.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/teensy/teensy_context.h b/teensy/teensy_context.h
index 056a0c2..7223d3d 100644
--- a/teensy/teensy_context.h
+++ b/teensy/teensy_context.h
@@ -5,6 +5,14 @@
#include "teensy_renderer.h"
#include "teensy.h"
+struct ty_ctx {
+ struct ty_hints hints;
+ double ticrate;
+ double prev_tic_ts;
+ bool down[TY_BTN_COUNT];
+ bool pressed[TY_BTN_COUNT];
+};
+
extern struct ty_ctx ctx;
bool is_init(void);