diff --git a/src/MiniFB_internal.h b/src/MiniFB_internal.h index 7ba4062..c0c3192 100755 --- a/src/MiniFB_internal.h +++ b/src/MiniFB_internal.h @@ -18,7 +18,6 @@ extern "C" { #endif extern short int g_keycodes[512]; - void init_keycodes(void); void keyboard_default(struct mfb_window *window, mfb_key key, mfb_key_mod mod, bool isPressed); #if defined(__cplusplus) diff --git a/src/macosx/MacMiniFB.m b/src/macosx/MacMiniFB.m index 8410f74..3b04db8 100644 --- a/src/macosx/MacMiniFB.m +++ b/src/macosx/MacMiniFB.m @@ -15,6 +15,7 @@ #include #include +//------------------------------------- void init_keycodes(); //------------------------------------- diff --git a/src/wayland/WaylandMiniFB.c b/src/wayland/WaylandMiniFB.c index ade49b3..1151433 100644 --- a/src/wayland/WaylandMiniFB.c +++ b/src/wayland/WaylandMiniFB.c @@ -19,6 +19,8 @@ #include +void init_keycodes(); + static void destroy_window_data(SWindowData *window_data) { diff --git a/src/windows/WinMiniFB.c b/src/windows/WinMiniFB.c index 3916da2..1c94c70 100644 --- a/src/windows/WinMiniFB.c +++ b/src/windows/WinMiniFB.c @@ -11,6 +11,8 @@ long s_window_style = WS_POPUP | WS_SYSMENU | WS_CAPTION; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +void init_keycodes(); + uint32_t translate_mod(); mfb_key translate_key(unsigned int wParam, unsigned long lParam); void destroy_window_data(SWindowData *window_data); diff --git a/src/x11/X11MiniFB.c b/src/x11/X11MiniFB.c index b6e7117..9676366 100644 --- a/src/x11/X11MiniFB.c +++ b/src/x11/X11MiniFB.c @@ -15,6 +15,8 @@ /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +void init_keycodes(SWindowData_X11 *window_data_x11); + extern void stretch_image(uint32_t *srcImage, uint32_t srcX, uint32_t srcY, uint32_t srcWidth, uint32_t srcHeight, uint32_t srcPitch, uint32_t *dstImage, uint32_t dstX, uint32_t dstY, uint32_t dstWidth, uint32_t dstHeight, uint32_t dstPitch);