diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-22 13:33:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-22 13:33:45 +0300 |
commit | 6521f2a78abfc4a43147497e4f639c27aadd2e3d (patch) | |
tree | f234807d1e6d87f9434ebbf336b19ee3a998f0b4 /src/gui | |
parent | 5dd673aa6abe2a070de45388a885d03fcc037d70 (diff) | |
download | plus-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.cpp | 5 |
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); |