MAEMO: Enable/Disable clicking now displays OSD message
This commit is contained in:
parent
912a040534
commit
ac20718363
2 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
||||||
#include "common/scummsys.h"
|
#include "common/scummsys.h"
|
||||||
|
|
||||||
#include "backends/events/maemosdl/maemosdl-events.h"
|
#include "backends/events/maemosdl/maemosdl-events.h"
|
||||||
|
#include "common/translation.h"
|
||||||
|
|
||||||
MaemoSdlEventSource::MaemoSdlEventSource() : SdlEventSource(), _clickEnabled(true) {
|
MaemoSdlEventSource::MaemoSdlEventSource() : SdlEventSource(), _clickEnabled(true) {
|
||||||
|
|
||||||
|
@ -72,6 +73,8 @@ bool MaemoSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) {
|
||||||
return true;
|
return true;
|
||||||
} else if (ev.key.keysym.sym == SDLK_F8) {
|
} else if (ev.key.keysym.sym == SDLK_F8) {
|
||||||
_clickEnabled = !_clickEnabled;
|
_clickEnabled = !_clickEnabled;
|
||||||
|
((SurfaceSdlGraphicsManager*) _graphicsManager)->displayMessageOnOSD(
|
||||||
|
_clickEnabled ? _("Clicking Enabled") : _("Clicking Disabled"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -80,3 +80,4 @@ backends/events/gph/gph-events.cpp
|
||||||
backends/events/openpandora/op-events.cpp
|
backends/events/openpandora/op-events.cpp
|
||||||
backends/updates/macosx/macosx-updates.mm
|
backends/updates/macosx/macosx-updates.mm
|
||||||
backends/platform/bada/form.cpp
|
backends/platform/bada/form.cpp
|
||||||
|
backends/events/maemosdl/maemosdl-events.cpp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue