aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_context.h
blob: f9d4bf4fca348e1b774b41f3f55c6559c0f2eb16 (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"

typedef struct {
    ty_Hints hints;
    double ticrate;
    double prev_tic_ts;
    bool down[TY_BTN_COUNT];
    bool pressed[TY_BTN_COUNT];
} ty_Ctx;

extern ty_Ctx ctx;

bool is_init(void);

#endif // TEENSY_CONTEXT_H_