posix: properly fix size mismatch of keyboard/joystick_cfg arrays

fixes #563

unlike #566, this also fixes the gtk2 frontend automatically.
This commit is contained in:
rofl0r 2022-07-20 16:21:16 +00:00
parent 22fd8b231d
commit b27b31c57d
2 changed files with 5 additions and 2 deletions

View File

@ -31,7 +31,10 @@
u32 keyboard_cfg[NB_KEYS];
u16 joypad_cfg[NB_KEYS];
u32 joypad_cfg[NB_KEYS];
static_assert(sizeof(keyboard_cfg) == sizeof(joypad_cfg), "");
u16 nbr_joy;
mouse_status mouse;
static int fullscreen;

View File

@ -66,7 +66,7 @@ extern const char *key_names[NB_KEYS];
/* Current keyboard configuration */
extern u32 keyboard_cfg[NB_KEYS];
/* Current joypad configuration */
extern u16 joypad_cfg[NB_KEYS];
extern u32 joypad_cfg[NB_KEYS];
/* Number of detected joypads */
extern u16 nbr_joy;