Merge branch 'master' into ios_tmp
* master: fix issue on macos x
This commit is contained in:
@ -565,6 +565,9 @@ mfb_get_key_name(mfb_key key) {
|
||||
case KB_KEY_MENU:
|
||||
return "Menu";
|
||||
|
||||
case KB_KEY_UNKNOWN:
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
return "Unknown";
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
extern short int g_keycodes[512];
|
||||
void init_keycodes();
|
||||
void init_keycodes(void);
|
||||
void keyboard_default(struct mfb_window *window, mfb_key key, mfb_key_mod mod, bool isPressed);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
@ -1,3 +1,5 @@
|
||||
#if defined(__linux__)
|
||||
|
||||
#include <time.h>
|
||||
#include <MiniFB.h>
|
||||
|
||||
@ -30,3 +32,6 @@ mfb_timer_init() {
|
||||
}
|
||||
g_timer_resolution = 1.0 / g_timer_frequency;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -8,8 +8,8 @@ double g_timer_resolution;
|
||||
double g_time_for_frame = 1.0 / 60.0;
|
||||
|
||||
//-------------------------------------
|
||||
extern uint64_t mfb_timer_tick();
|
||||
extern void mfb_timer_init();
|
||||
extern uint64_t mfb_timer_tick(void);
|
||||
extern void mfb_timer_init(void);
|
||||
|
||||
//-------------------------------------
|
||||
void
|
||||
|
Reference in New Issue
Block a user