KEYMAPPER: remap timeout (ms) can be set from config

Config key is "remap_timeout_delay_ms", min value is 3000
This commit is contained in:
antoniou 2020-09-26 16:07:38 +03:00
parent 53128c56b9
commit 8a87db94de
3 changed files with 14 additions and 2 deletions

View file

@ -320,6 +320,13 @@ void OSystem_Android::initBackend() {
ConfMan.setBool("FM_high_quality", false);
ConfMan.setBool("FM_medium_quality", true);
// we need a relaxed delay for the remapping timeout since handling touch interface and virtual keyboard can be slow
// and especially in some occasions when we need to pull down (hide) the keyboard and map a system key (like the AC_Back) button.
// 8 seconds should be enough
ConfMan.registerDefault("remap_timeout_delay_ms", 8000);
if (!ConfMan.hasKey("remap_timeout_delay_ms")) {
ConfMan.setInt("remap_timeout_delay_ms", 8000);
}
if (!ConfMan.hasKey("browser_lastpath")) {
// TODO remove the debug message eventually