#include #include #include #include #include #include static int mouseX, mouseY; static bool keyboardShown = false; void Kinc_Mouse_GetPosition(int window, int *x, int *y) { *x = mouseX; *y = mouseY; } void kinc_keyboard_show(void) { keyboardShown = true; } void kinc_keyboard_hide(void) { keyboardShown = false; } bool kinc_keyboard_active(void) { return keyboardShown; } void kinc_vibrate(int ms) {} const char *kinc_system_id(void) { return "macOS"; } static const char *videoFormats[] = {"ogv", NULL}; const char **kinc_video_formats(void) { return videoFormats; } void kinc_set_keep_screen_on(bool on) {} #include double kinc_frequency(void) { mach_timebase_info_data_t info; mach_timebase_info(&info); return (double)info.denom / (double)info.numer / 1e-9; } kinc_ticks_t kinc_timestamp(void) { return mach_absolute_time(); } void kinc_login(void) {} void kinc_unlock_achievement(int id) {} bool kinc_gamepad_connected(int num) { return true; } void kinc_gamepad_rumble(int gamepad, float left, float right) {}