diff options
author | dhewg | 2011-05-07 20:08:29 +0200 |
---|---|---|
committer | dhewg | 2011-05-07 20:08:29 +0200 |
commit | 16f0dcc00b96db001fad8c6a035576a72540d5dc (patch) | |
tree | bbb2555bd3693676457b1c502acf01f513585aae /backends | |
parent | 066b3882c6d42b4f5cecdca5415857c20f0c2251 (diff) | |
download | scummvm-rg350-16f0dcc00b96db001fad8c6a035576a72540d5dc.tar.gz scummvm-rg350-16f0dcc00b96db001fad8c6a035576a72540d5dc.tar.bz2 scummvm-rg350-16f0dcc00b96db001fad8c6a035576a72540d5dc.zip |
ANDROID: Get rid of Fn->ALT metakey mapping
Thanks to Ge0rG for the analysis
Cherry-picked from bfecb37501b6fdc35f2802216db5fb2b0e54b8ee
Diffstat (limited to 'backends')
-rw-r--r-- | backends/platform/android/events.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/platform/android/events.cpp b/backends/platform/android/events.cpp index 09466b4d2f..90f92790da 100644 --- a/backends/platform/android/events.cpp +++ b/backends/platform/android/events.cpp @@ -444,8 +444,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; |