Fix mousewheel under SDL 1.2. DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@4775 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2014-11-29 03:21:56 +00:00
parent a1ec634dec
commit c42516c579

View file

@ -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)