summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-25 19:21:08 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-25 19:21:08 +0300
commitd1153fc8c1f226d802e82cba7d11c686998a1523 (patch)
tree35f1b33a01e1ad4b32c4e7857cb58fb42b7c5103 /src/client.cpp
parent7506dbed4cf9ae76058283f4abc799bdf4614b3d (diff)
downloadmv-d1153fc8c1f226d802e82cba7d11c686998a1523.tar.gz
mv-d1153fc8c1f226d802e82cba7d11c686998a1523.tar.bz2
mv-d1153fc8c1f226d802e82cba7d11c686998a1523.tar.xz
mv-d1153fc8c1f226d802e82cba7d11c686998a1523.zip
Add empty handlers for accelerometer events in Android version.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 871b5c873..17a846b86 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -981,6 +981,9 @@ int Client::gameExec()
case SDL_KEYBOARDSHOW:
updateScreenKeyboard(event.user.code);
break;
+
+ case SDL_ACCELEROMETER:
+ break;
#endif
default:
@@ -2883,6 +2886,10 @@ void Client::logEvent(const SDL_Event &event)
case SDL_USEREVENT:
logger->log("event: SDL_USEREVENT");
break;
+#ifdef ANDROID
+ case SDL_ACCELEROMETER:
+ logger->log("event: SDL_ACCELEROMETER");
+#endif
default:
logger->log("event: other: %d", event.type);
break;