mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
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:
parent
a1ec634dec
commit
c42516c579
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue