aboutsummaryrefslogtreecommitdiff
path: root/backends/events/maemosdl
diff options
context:
space:
mode:
authorTarek Soliman2012-02-17 14:41:41 -0600
committerTarek Soliman2012-02-17 14:42:39 -0600
commit53d6ef12090d0a0ce34145b3c661dc4e8df619d7 (patch)
tree4bf1715615f1a5f609344e67f9d752d608570cd4 /backends/events/maemosdl
parentc87657f066ca9cbb0e07963c31cf57c96b1c5068 (diff)
downloadscummvm-rg350-53d6ef12090d0a0ce34145b3c661dc4e8df619d7.tar.gz
scummvm-rg350-53d6ef12090d0a0ce34145b3c661dc4e8df619d7.tar.bz2
scummvm-rg350-53d6ef12090d0a0ce34145b3c661dc4e8df619d7.zip
MAEMO: Fix building without keymapper enabled
Diffstat (limited to 'backends/events/maemosdl')
-rw-r--r--backends/events/maemosdl/maemosdl-events.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/events/maemosdl/maemosdl-events.cpp b/backends/events/maemosdl/maemosdl-events.cpp
index 932be0dc47..0046d297eb 100644
--- a/backends/events/maemosdl/maemosdl-events.cpp
+++ b/backends/events/maemosdl/maemosdl-events.cpp
@@ -200,6 +200,7 @@ MaemoSdlEventObserver::MaemoSdlEventObserver(MaemoSdlEventSource *eventSource) {
}
bool MaemoSdlEventObserver::notifyEvent(const Common::Event &event) {
+#ifdef ENABLE_KEYMAPPER
if (event.type != Common::EVENT_CUSTOM_BACKEND)
return false;
if (event.customType == kEventClickMode) {
@@ -207,6 +208,7 @@ bool MaemoSdlEventObserver::notifyEvent(const Common::Event &event) {
_eventSource->toggleClickMode();
return true;
}
+#endif
return false;
}