summaryrefslogtreecommitdiff
path: root/src/eventsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-04 20:45:15 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-05 00:21:16 +0300
commitaf2f4f8ab50a209502b929082b11a7a07e6c5499 (patch)
tree4ad3e2efb564fd523deb5a0925941bf4abac319a /src/eventsmanager.cpp
parentb90595ef486f10d4b5e069e9363a2df5270fe717 (diff)
downloadmanaplus-af2f4f8ab50a209502b929082b11a7a07e6c5499.tar.gz
manaplus-af2f4f8ab50a209502b929082b11a7a07e6c5499.tar.bz2
manaplus-af2f4f8ab50a209502b929082b11a7a07e6c5499.tar.xz
manaplus-af2f4f8ab50a209502b929082b11a7a07e6c5499.zip
Fix code style.
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r--src/eventsmanager.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index 15197c087..cdb1a5f03 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -205,16 +205,16 @@ void EventsManager::logEvent(const SDL_Event &event)
{
switch (event.type)
{
- case SDL_MOUSEMOTION:
- logger->log("event: SDL_MOUSEMOTION: %d,%d,%d",
- event.motion.state, event.motion.x, event.motion.y);
- break;
#ifdef USE_SDL2
#define winEventLog(name, name2) \
case name: \
str = name2; \
break
+ case SDL_MOUSEMOTION:
+ logger->log("event: SDL_MOUSEMOTION: %u,%u,%u",
+ event.motion.state, event.motion.x, event.motion.y);
+ break;
case SDL_FINGERDOWN:
{
const SDL_TouchFingerEvent &touch = event.tfinger;
@@ -338,6 +338,10 @@ void EventsManager::logEvent(const SDL_Event &event)
logger->log("SDL_APP_DIDENTERBACKGROUND");
break;
#else
+ case SDL_MOUSEMOTION:
+ logger->log("event: SDL_MOUSEMOTION: %u,%d,%d",
+ event.motion.state, event.motion.x, event.motion.y);
+ break;
case SDL_KEYDOWN:
logger->log("event: SDL_KEYDOWN: %d,%d,%d", event.key.state,
event.key.keysym.scancode, event.key.keysym.unicode);
@@ -407,7 +411,7 @@ void EventsManager::logEvent(const SDL_Event &event)
#endif
#endif
default:
- logger->log("event: other: %d", event.type);
+ logger->log("event: other: %u", event.type);
break;
};
}