diff --git a/desmume/src/frontend/posix/gtk/main.cpp b/desmume/src/frontend/posix/gtk/main.cpp index f74f5add6..8bbb159ad 100644 --- a/desmume/src/frontend/posix/gtk/main.cpp +++ b/desmume/src/frontend/posix/gtk/main.cpp @@ -353,7 +353,7 @@ struct modify_key_ctx { }; static u16 keys_latch = 0; -u16 Keypad_Temp[NB_KEYS]; +u32 Keypad_Temp[NB_KEYS]; class configured_features : public CommandLine { diff --git a/desmume/src/frontend/posix/gtk2/main.cpp b/desmume/src/frontend/posix/gtk2/main.cpp index 411ed4f06..2d60bd13d 100644 --- a/desmume/src/frontend/posix/gtk2/main.cpp +++ b/desmume/src/frontend/posix/gtk2/main.cpp @@ -670,7 +670,7 @@ struct modify_key_ctx { static u16 keys_latch = 0; static u16 gdk_shift_pressed = 0; -u16 Keypad_Temp[NB_KEYS]; +u32 Keypad_Temp[NB_KEYS]; class configured_features : public CommandLine {