aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authordhewg2011-05-07 19:42:37 +0200
committerdhewg2011-05-07 19:44:21 +0200
commitbfecb37501b6fdc35f2802216db5fb2b0e54b8ee (patch)
tree311581871c05846c1c102da90060552b5b2feaab /backends/platform
parent80ae039d7a40a77061ae289234f1ffbd81c79ed0 (diff)
downloadscummvm-rg350-bfecb37501b6fdc35f2802216db5fb2b0e54b8ee.tar.gz
scummvm-rg350-bfecb37501b6fdc35f2802216db5fb2b0e54b8ee.tar.bz2
scummvm-rg350-bfecb37501b6fdc35f2802216db5fb2b0e54b8ee.zip
ANDROID: Get rid of Fn->ALT metakey mapping
Thanks to Ge0rG for the analysis
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/android/events.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/platform/android/events.cpp b/backends/platform/android/events.cpp
index 2f140f0c0b..0d74e1c524 100644
--- a/backends/platform/android/events.cpp
+++ b/backends/platform/android/events.cpp
@@ -461,8 +461,12 @@ void OSystem_Android::pushEvent(int type, int arg1, int arg2, int arg3,
if (arg4 & JMETA_SHIFT)
e.kbd.flags |= Common::KBD_SHIFT;
- if (arg4 & JMETA_ALT)
- e.kbd.flags |= Common::KBD_ALT;
+ // JMETA_ALT is Fn on physical keyboards!
+ // when mapping this to ALT - as we know it from PC keyboards - all
+ // Fn combos will be broken (like Fn+q, which needs to end as 1 and
+ // not ALT+1). Do not want.
+ //if (arg4 & JMETA_ALT)
+ // e.kbd.flags |= Common::KBD_ALT;
if (arg4 & (JMETA_SYM | JMETA_CTRL))
e.kbd.flags |= Common::KBD_CTRL;