aboutsummaryrefslogtreecommitdiff
path: root/backends/events/maemosdl/maemosdl-events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/events/maemosdl/maemosdl-events.cpp')
-rw-r--r--backends/events/maemosdl/maemosdl-events.cpp8
1 files changed, 8 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;
}