Quick fix for the init_key_codes issue

This commit is contained in:
Carlos Aragones 2020-06-03 17:28:30 +02:00
parent 1c3054d320
commit 649560ef2f
5 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -15,6 +15,7 @@
#include <MiniFB_internal.h>
#include <MiniFB_enums.h>
//-------------------------------------
void init_keycodes();
//-------------------------------------

View File

@ -19,6 +19,8 @@
#include <sys/mman.h>
void init_keycodes();
static void
destroy_window_data(SWindowData *window_data)
{

View File

@ -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);

View File

@ -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);