input: fix key_menu_as_rgui option.

This commit is contained in:
Sorgelig
2021-10-25 20:10:11 +08:00
parent 10e57dcd7f
commit d3ffe5b38e

View File

@@ -2665,7 +2665,7 @@ static void input_cb(struct input_event *ev, struct input_absinfo *absinfo, int
// replace MENU key by RGUI to allow using Right Amiga on reduced keyboards
// (it also disables the use of Menu for OSD)
if (cfg.key_menu_as_rgui && code == 139) code = 126;
if (cfg.key_menu_as_rgui && code == KEY_COMPOSE) code = KEY_RIGHTMETA;
//Keyrah v2: USB\VID_18D8&PID_0002\A600/A1200_MULTIMEDIA_EXTENSION_VERSION
int keyrah = (cfg.keyrah_mode && (((((uint32_t)input[dev].vid) << 16) | input[dev].pid) == cfg.keyrah_mode));