aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_context.h
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-12 16:41:37 -0400
committeriamcheeseman <[email protected]>2026-05-12 16:41:37 -0400
commit897a153d290ed4d3647ad9e0100d1b717f580b5f (patch)
tree844dee0b3b2b7d869cd8e1ba27ffb403e8d51d99 /teensy/teensy_context.h
parentc1dd3ce9850fb2906aa5937b4374d1c0fc74ccf7 (diff)
typedef all structs and rename to Ada_Case
There isn't really a technical reason that I made this change. I just wanted to use Ada_Case. All types were prefixed with ty_, e.g. ty_Image.
Diffstat (limited to 'teensy/teensy_context.h')
-rw-r--r--teensy/teensy_context.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/teensy/teensy_context.h b/teensy/teensy_context.h
index 7223d3d..f9d4bf4 100644
--- a/teensy/teensy_context.h
+++ b/teensy/teensy_context.h
@@ -5,15 +5,15 @@
#include "teensy_renderer.h"
#include "teensy.h"
-struct ty_ctx {
- struct ty_hints hints;
+typedef struct {
+ ty_Hints hints;
double ticrate;
double prev_tic_ts;
bool down[TY_BTN_COUNT];
bool pressed[TY_BTN_COUNT];
-};
+} ty_Ctx;
-extern struct ty_ctx ctx;
+extern ty_Ctx ctx;
bool is_init(void);