mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
MAEMO: Enable/Disable clicking now displays OSD message
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user