blob: 7223d3d963fa0233ac4330bf9b368b6aaf3ab100 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef TEENSY_CONTEXT_H_
#define TEENSY_CONTEXT_H_
#include "teensy_common.h"
#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);
#endif // TEENSY_CONTEXT_H_
|