Skip to content

Commit

Permalink
ANDROID: Get rid of Fn->ALT metakey mapping
Browse files Browse the repository at this point in the history
Thanks to Ge0rG for the analysis
  • Loading branch information
dhewg committed May 7, 2011
1 parent 80ae039 commit bfecb37
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backends/platform/android/events.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit bfecb37

Please sign in to comment.