From 01e94151cfb1e39974f2f6e802edfaa9424f62d9 Mon Sep 17 00:00:00 2001 From: olsner Date: Wed, 2 Jun 2004 15:22:19 +0000 Subject: [PATCH] added usage of SDL_BUTTON_WHEELUP/DOWN instead of the win-specific constant values This was SVN commit r351. --- source/gui/CGUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/gui/CGUI.cpp b/source/gui/CGUI.cpp index c0651f9151..abc7371725 100755 --- a/source/gui/CGUI.cpp +++ b/source/gui/CGUI.cpp @@ -124,14 +124,14 @@ bool CGUI::HandleEvent(const SDL_Event& ev) */ } break; - case 3: // wheel down + case SDL_BUTTON_WHEELDOWN: // wheel down if (pNearest) { pNearest->HandleMessage(SGUIMessage(GUIM_MOUSE_WHEEL_DOWN)); } break; - case 4: // wheel up + case SDL_BUTTON_WHEELUP: // wheel up if (pNearest) { pNearest->HandleMessage(SGUIMessage(GUIM_MOUSE_WHEEL_UP));