aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_context.h
diff options
context:
space:
mode:
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);