summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-21 21:46:17 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-22 02:56:50 +0300
commit45fc7dfe871e25c913deb56063ca930dafe8b9ae (patch)
tree0ef15c4d3d36b02e41f8bfa765f5fadee779af24 /src/input/inputmanager.cpp
parent6e6d42af899c7dcc05b20b07130d0b1a5932f9bf (diff)
downloadManaVerse-45fc7dfe871e25c913deb56063ca930dafe8b9ae.tar.gz
ManaVerse-45fc7dfe871e25c913deb56063ca930dafe8b9ae.tar.bz2
ManaVerse-45fc7dfe871e25c913deb56063ca930dafe8b9ae.tar.xz
ManaVerse-45fc7dfe871e25c913deb56063ca930dafe8b9ae.zip
fix compilation and partial running with SDL2 on Android.
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r--src/input/inputmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index 12831560a..0f250dae6 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -563,11 +563,13 @@ bool InputManager::handleEvent(const SDL_Event &event)
break;
}
#ifdef ANDROID
+#ifndef USE_SDL2
case SDL_ACCELEROMETER:
{
break;
}
#endif
+#endif
default:
break;
}
@@ -604,11 +606,13 @@ bool InputManager::handleEvent(const SDL_Event &event)
}
break;
#ifdef ANDROID
+#ifndef USE_SDL2
case SDL_ACCELEROMETER:
{
break;
}
#endif
+#endif
default:
break;
}