aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarek Soliman2011-08-26 17:37:14 -0500
committerTarek Soliman2011-09-22 22:07:45 -0500
commitac207183635c1d8cc91c0c94de5f2900ad01a28c (patch)
treeee7bbb15e70f8b106e572061e30a5a54e28f929c
parent912a04053432bd344629f0ff4da8404cfcd4e2e0 (diff)
downloadscummvm-rg350-ac207183635c1d8cc91c0c94de5f2900ad01a28c.tar.gz
scummvm-rg350-ac207183635c1d8cc91c0c94de5f2900ad01a28c.tar.bz2
scummvm-rg350-ac207183635c1d8cc91c0c94de5f2900ad01a28c.zip
MAEMO: Enable/Disable clicking now displays OSD message
-rw-r--r--backends/events/maemosdl/maemosdl-events.cpp3
-rw-r--r--po/POTFILES1
2 files changed, 4 insertions, 0 deletions
diff --git a/backends/events/maemosdl/maemosdl-events.cpp b/backends/events/maemosdl/maemosdl-events.cpp
index 3001f5d790..6a62f53950 100644
--- a/backends/events/maemosdl/maemosdl-events.cpp
+++ b/backends/events/maemosdl/maemosdl-events.cpp
@@ -25,6 +25,7 @@
#include "common/scummsys.h"
#include "backends/events/maemosdl/maemosdl-events.h"
+#include "common/translation.h"
MaemoSdlEventSource::MaemoSdlEventSource() : SdlEventSource(), _clickEnabled(true) {
@@ -72,6 +73,8 @@ bool MaemoSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) {
return true;
} else if (ev.key.keysym.sym == SDLK_F8) {
_clickEnabled = !_clickEnabled;
+ ((SurfaceSdlGraphicsManager*) _graphicsManager)->displayMessageOnOSD(
+ _clickEnabled ? _("Clicking Enabled") : _("Clicking Disabled"));
return true;
}
break;
diff --git a/po/POTFILES b/po/POTFILES
index 0d0a4270b0..6ce26a0539 100644
--- a/po/POTFILES
+++ b/po/POTFILES
@@ -80,3 +80,4 @@ backends/events/gph/gph-events.cpp
backends/events/openpandora/op-events.cpp
backends/updates/macosx/macosx-updates.mm
backends/platform/bada/form.cpp
+backends/events/maemosdl/maemosdl-events.cpp