summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
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);