diff options
author | Tarek Soliman | 2011-11-29 11:19:47 -0600 |
---|---|---|
committer | Tarek Soliman | 2011-11-29 11:25:58 -0600 |
commit | dabea2b5151b5f220fb06a93e50a3eb43903385c (patch) | |
tree | acd1444ca4d037e07f3a10640e965317d96c3b9a | |
parent | 5cd91fbf73635dd92d046b5ae70e19cf4e1a47d0 (diff) | |
download | scummvm-rg350-dabea2b5151b5f220fb06a93e50a3eb43903385c.tar.gz scummvm-rg350-dabea2b5151b5f220fb06a93e50a3eb43903385c.tar.bz2 scummvm-rg350-dabea2b5151b5f220fb06a93e50a3eb43903385c.zip |
MAMEO: Add GMM keybinding for N900 (fix bug #3443043)
The keybinding is Ctrl-Shift-m.
Ctrl-m is more desirable but is toggling mouse capture.
-rw-r--r-- | backends/events/maemosdl/maemosdl-events.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/backends/events/maemosdl/maemosdl-events.cpp b/backends/events/maemosdl/maemosdl-events.cpp index 32d5cfb5ac..07af368064 100644 --- a/backends/events/maemosdl/maemosdl-events.cpp +++ b/backends/events/maemosdl/maemosdl-events.cpp @@ -47,7 +47,11 @@ bool MaemoSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) { switch (ev.type) { case SDL_KEYDOWN:{ - if (ev.key.keysym.sym == SDLK_F4) { + if (ev.key.keysym.sym == SDLK_F4 + || (model.modelType == kModelTypeN900 + && ev.key.keysym.sym == SDLK_m + && (ev.key.keysym.mod & KMOD_CTRL) + && (ev.key.keysym.mod & KMOD_SHIFT))) { event.type = Common::EVENT_MAINMENU; debug(9, "remapping to main menu"); return true; @@ -83,7 +87,11 @@ bool MaemoSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) { break; } case SDL_KEYUP: { - if (ev.key.keysym.sym == SDLK_F4) { + if (ev.key.keysym.sym == SDLK_F4 + || (model.modelType == kModelTypeN900 + && ev.key.keysym.sym == SDLK_m + && (ev.key.keysym.mod & KMOD_CTRL) + && (ev.key.keysym.mod & KMOD_SHIFT))) { event.type = Common::EVENT_MAINMENU; return true; } else if (ev.key.keysym.sym == SDLK_F6) { |