summaryrefslogtreecommitdiff
path: root/src/eventsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-09 06:59:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-09 06:59:07 +0300
commitc108b00ddc98e99182bf1a0f83602772f4931122 (patch)
tree73b5a092177a86d7b8f9c33b00952dbe57df2dd6 /src/eventsmanager.cpp
parentc1747eef4ec4b07857a498f9806d3b222ab0baa6 (diff)
downloadManaVerse-c108b00ddc98e99182bf1a0f83602772f4931122.tar.gz
ManaVerse-c108b00ddc98e99182bf1a0f83602772f4931122.tar.bz2
ManaVerse-c108b00ddc98e99182bf1a0f83602772f4931122.tar.xz
ManaVerse-c108b00ddc98e99182bf1a0f83602772f4931122.zip
Fix compilation with SDL2 < 2.0.4
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r--src/eventsmanager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index ded276746..76fe054fa 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -367,12 +367,21 @@ void EventsManager::logEvent(const SDL_Event &event)
logger->log("SDL_APP_DIDENTERBACKGROUND");
break;
case SDL_MOUSEWHEEL:
+#if SDL_VERSION_ATLEAST(2, 0, 4)
logger->log("event: SDL_MOUSEWHEEL: %u,%u, %d,%d, %u",
event.wheel.windowID,
event.wheel.which,
event.wheel.x,
event.wheel.y,
event.wheel.direction);
+#else // SDL_VERSION_ATLEAST(2, 0, 4)
+
+ logger->log("event: SDL_MOUSEWHEEL: %u,%u, %d,%d",
+ event.wheel.windowID,
+ event.wheel.which,
+ event.wheel.x,
+ event.wheel.y);
+#endif // SDL_VERSION_ATLEAST(2, 0, 4)
break;
#if SDL_VERSION_ATLEAST(2, 0, 4)
case SDL_AUDIODEVICEADDED: