From c42516c57903fe7c298dc3e558a35a2841fbf296 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 29 Nov 2014 03:21:56 +0000 Subject: [PATCH] Fix mousewheel under SDL 1.2. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@4775 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/sdlayer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 45f53b8a9..e74cde06a 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -1778,6 +1778,9 @@ int32_t handleevents_sdlcommon(SDL_Event *ev) if (ev->button.state == SDL_PRESSED) mouseb |= (1 << j); else +#if SDL_MAJOR_VERSION==1 + if (j != SDL_BUTTON_WHEELUP && j != SDL_BUTTON_WHEELDOWN) +#endif mouseb &= ~(1 << j); if (mousepresscallback)