From e52f75eaa40b6a8f6f0db3a14a7dabf2e54506d3 Mon Sep 17 00:00:00 2001 From: Tarek Soliman Date: Thu, 9 Feb 2012 01:26:23 -0600 Subject: MAEMO: Define HardwareKeySet --- backends/platform/maemo/maemo.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'backends/platform/maemo/maemo.cpp') diff --git a/backends/platform/maemo/maemo.cpp b/backends/platform/maemo/maemo.cpp index 454a13631c..24f5d38e5e 100644 --- a/backends/platform/maemo/maemo.cpp +++ b/backends/platform/maemo/maemo.cpp @@ -28,6 +28,7 @@ #include "common/config-manager.h" #include "backends/platform/maemo/maemo.h" +#include "backends/platform/maemo/maemo-keys.h" #include "backends/events/maemosdl/maemosdl-events.h" #include "backends/graphics/maemosdl/maemosdl-graphics.h" #include "common/textconsole.h" @@ -118,6 +119,16 @@ void OSystem_SDL_Maemo::setupIcon() { // http://bugzilla.libsdl.org/show_bug.cgi?id=586 } +Common::HardwareKeySet *OSystem_SDL_Maemo::getHardwareKeySet() { +#ifdef ENABLE_KEYMAPPER + return new Common::HardwareKeySet(Common::maemoKeys, Common::maemoModifiers); +#else + return OSystem_POSIX::getHardwareKeySet(); +#endif +} + } //namespace Maemo + + #endif -- cgit v1.2.3