Skip to content

Commit

Permalink
Fix: SDL_MOUSEWHEEL is only present in SDL 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aybe committed Jul 10, 2024
1 parent 0a3ffc2 commit 8d56ebb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/gui_tk/gui_tk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2333,8 +2333,10 @@ bool ScreenSDL::event(SDL_Event &event) {
}
lastdown = 0;
return rc;
#if C_SDL2
case SDL_MOUSEWHEEL:
return mouseWheel(event.wheel.y);
#endif
}

return false;
Expand Down

0 comments on commit 8d56ebb

Please sign in to comment.