mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-19 10:41:55 +00:00
ANDROID: Fix correct keycode in keymapper for virtual keyboard trigger.
As the virtual keyboard trigger has been moved to CTRL-F7, the previous code which generates a unmodified F7 event to do this will not work. However, due to the complexity of this code, directly calling the virtual keyboard trigger event could have side effects, so have instead just added the CTRL modifier to fix this. This should be fixed if possible to use EVENT_VIRTUAL_KEYBOARD.
This commit is contained in:
parent
7042de2aa9
commit
37c46fecbf
@ -263,7 +263,7 @@ void OSystem_Android::setupKeymapper() {
|
||||
Action *act;
|
||||
|
||||
act = new Action(globalMap, "VIRT", "Display keyboard");
|
||||
act->addKeyEvent(KeyState(KEYCODE_F7, ASCII_F7, 0));
|
||||
act->addKeyEvent(KeyState(KEYCODE_F7, ASCII_F7, KBD_CTRL));
|
||||
|
||||
mapper->addGlobalKeymap(globalMap);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user