From: Arian Behvandnejad Date: Tue, 16 Apr 2013 22:23:48 +0000 (+0430) Subject: Fixed issue #956: mouse wheel scroll toggles active add-ons X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=37e4a7bfe92f90f3eccaab4f6b88e27a567b911f;p=supertux.git Fixed issue #956: mouse wheel scroll toggles active add-ons --- diff --git a/src/gui/menu.cpp b/src/gui/menu.cpp index b05d41e16..21df675cb 100644 --- a/src/gui/menu.cpp +++ b/src/gui/menu.cpp @@ -779,6 +779,7 @@ Menu::event(const SDL_Event& event) switch(event.type) { case SDL_MOUSEBUTTONDOWN: + if(event.button.button == SDL_BUTTON_LEFT) { int x = int(event.motion.x * float(SCREEN_WIDTH)/g_screen->w); int y = int(event.motion.y * float(SCREEN_HEIGHT)/g_screen->h);