2019-06-08 18:11:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "MiniFB.h"
|
2019-06-08 18:34:05 +00:00
|
|
|
#include "MiniFB_enums.h"
|
2019-06-08 18:11:02 +00:00
|
|
|
|
2020-03-06 06:06:54 +00:00
|
|
|
#define kCall(func, ...) if(window_data && window_data->func) window_data->func((struct mfb_window *) window_data, __VA_ARGS__);
|
2019-06-08 18:34:05 +00:00
|
|
|
#define kUnused(var) (void) var;
|
2019-06-08 18:11:02 +00:00
|
|
|
|
2020-04-22 11:00:15 +00:00
|
|
|
typedef struct mfb_timer {
|
|
|
|
int64_t start_time;
|
|
|
|
int64_t delta_counter;
|
|
|
|
uint64_t time;
|
|
|
|
} mfb_timer;
|
|
|
|
|
|
|
|
|
2019-06-08 18:11:02 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-11-14 15:18:42 +00:00
|
|
|
extern short int g_keycodes[512];
|
2019-06-08 18:11:02 +00:00
|
|
|
void init_keycodes();
|
2020-03-06 06:06:54 +00:00
|
|
|
void keyboard_default(struct mfb_window *window, mfb_key key, mfb_key_mod mod, bool isPressed);
|
2019-06-08 18:11:02 +00:00
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|