From 6521f2a78abfc4a43147497e4f639c27aadd2e3d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 May 2014 13:33:45 +0300 Subject: Dont report in log about mouse wheel usage (int SDL 1.2 builds) --- src/gui/sdlinput.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui') 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); -- cgit v1.2.3-70-g09d2