aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/events.cpp
diff options
context:
space:
mode:
authorStephen Kennedy2008-09-30 13:51:01 +0000
committerStephen Kennedy2008-09-30 13:51:01 +0000
commitdf3b8fd14c9ce97fe81976e30086af95000bb2f1 (patch)
treebfac785bf2d476df65ae1adf99445e3e2100f1e9 /backends/platform/sdl/events.cpp
parenta7bb113e83c88fad3a23d408caa99f918fdb610a (diff)
downloadscummvm-rg350-df3b8fd14c9ce97fe81976e30086af95000bb2f1.tar.gz
scummvm-rg350-df3b8fd14c9ce97fe81976e30086af95000bb2f1.tar.bz2
scummvm-rg350-df3b8fd14c9ce97fe81976e30086af95000bb2f1.zip
Added preprocessor flags 'ENABLE_VKEYBD' and 'ENABLE_KEYMAPPER' to control inclusion of vkeybd and keymapper in build.\n\nAlso added corresponding --enable-vkeybd and --enable-keymapper flags to configure scripts.
svn-id: r34706
Diffstat (limited to 'backends/platform/sdl/events.cpp')
-rw-r--r--backends/platform/sdl/events.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/sdl/events.cpp b/backends/platform/sdl/events.cpp
index c2edcf78fb..7a4ccb6e87 100644
--- a/backends/platform/sdl/events.cpp
+++ b/backends/platform/sdl/events.cpp
@@ -524,6 +524,7 @@ bool OSystem_SDL::remapKey(SDL_Event &ev, Common::Event &event) {
}
void OSystem_SDL::setupKeymapper() {
+#ifdef ENABLE_KEYMAPPER
using namespace Common;
Keymapper *mapper = getEventManager()->getKeymapper();
@@ -578,5 +579,6 @@ void OSystem_SDL::setupKeymapper() {
mapper->addGlobalKeymap(guiMap);
mapper->pushKeymap("global");
+#endif
}