summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-22 13:33:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-22 13:33:45 +0300
commit6521f2a78abfc4a43147497e4f639c27aadd2e3d (patch)
treef234807d1e6d87f9434ebbf336b19ee3a998f0b4 /src/gui
parent5dd673aa6abe2a070de45388a885d03fcc037d70 (diff)
downloadplus-6521f2a78abfc4a43147497e4f639c27aadd2e3d.tar.gz
plus-6521f2a78abfc4a43147497e4f639c27aadd2e3d.tar.bz2
plus-6521f2a78abfc4a43147497e4f639c27aadd2e3d.tar.xz
plus-6521f2a78abfc4a43147497e4f639c27aadd2e3d.zip
Dont report in log about mouse wheel usage (int SDL 1.2 builds)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/sdlinput.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp
index 18e1802d9..847e2a060 100644
--- a/src/gui/sdlinput.cpp
+++ b/src/gui/sdlinput.cpp
@@ -304,6 +304,11 @@ MouseButton::Type SDLInput::convertMouseButton(const int button)
return MouseButton::RIGHT;
case SDL_BUTTON_MIDDLE:
return MouseButton::MIDDLE;
+#ifndef USE_SDL2
+ case SDL_BUTTON_WHEELUP:
+ case SDL_BUTTON_WHEELDOWN:
+ return MouseButton::EMPTY;
+#endif
default:
// We have an unknown mouse type which is ignored.
logger->log("unknown button type: %u", button);