diff options
author | Tarek Soliman | 2011-07-16 23:42:10 -0500 |
---|---|---|
committer | Tarek Soliman | 2011-09-22 22:07:44 -0500 |
commit | e50b2477d26b7f9d25a44c8812769e9dca5afab0 (patch) | |
tree | 75f7a051eb4af59d28528807d3f23f10ff73259d /backends | |
parent | bafaeef24afa600940d3ffb422a10952bee57fff (diff) | |
download | scummvm-rg350-e50b2477d26b7f9d25a44c8812769e9dca5afab0.tar.gz scummvm-rg350-e50b2477d26b7f9d25a44c8812769e9dca5afab0.tar.bz2 scummvm-rg350-e50b2477d26b7f9d25a44c8812769e9dca5afab0.zip |
MAEMO: keymap fullscreen button
Diffstat (limited to 'backends')
-rw-r--r-- | backends/events/maemosdl/maemosdl-events.cpp | 8 | ||||
-rw-r--r-- | backends/events/maemosdl/maemosdl-events.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/backends/events/maemosdl/maemosdl-events.cpp b/backends/events/maemosdl/maemosdl-events.cpp index 994782746c..65e5318af8 100644 --- a/backends/events/maemosdl/maemosdl-events.cpp +++ b/backends/events/maemosdl/maemosdl-events.cpp @@ -40,6 +40,8 @@ bool MaemoSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) { if (ev.key.keysym.sym == SDLK_F4) { event.type = Common::EVENT_MAINMENU; return true; + } else if (ev.key.keysym.sym == SDLK_F6) { + // handled in keyup } break; } @@ -47,6 +49,12 @@ bool MaemoSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) { if (ev.key.keysym.sym == SDLK_F4) { event.type = Common::EVENT_MAINMENU; return true; + } else if (ev.key.keysym.sym == SDLK_F6) { + bool currentState = ((OSystem_SDL *)g_system)->getGraphicsManager()->getFeatureState(OSystem::kFeatureFullscreenMode); + g_system->beginGFXTransaction(); + ((OSystem_SDL *)g_system)->getGraphicsManager()->setFeatureState(OSystem::kFeatureFullscreenMode, !currentState); + g_system->endGFXTransaction(); + return true; } break; } diff --git a/backends/events/maemosdl/maemosdl-events.h b/backends/events/maemosdl/maemosdl-events.h index f447d4b15e..bdfee0f258 100644 --- a/backends/events/maemosdl/maemosdl-events.h +++ b/backends/events/maemosdl/maemosdl-events.h @@ -26,6 +26,8 @@ #define BACKEND_EVENTS_SDL_MAEMO_H #include "backends/events/sdl/sdl-events.h" +#include "backends/platform/sdl/sdl.h" +#include "backends/graphics/surfacesdl/surfacesdl-graphics.h" /** * SDL events manager for Maemo |