diff --git a/src/eventthread.cpp b/src/eventthread.cpp index ed95cf9..c0d6642 100644 --- a/src/eventthread.cpp +++ b/src/eventthread.cpp @@ -215,6 +215,9 @@ void EventThread::process(RGSSThreadData &rtData) { case SDL_MOUSEBUTTONDOWN : case SDL_MOUSEBUTTONUP : + if (event.button.button == 8 || event.button.button == 9) + event.button.button -= (8 - SDL_BUTTON_X1); + case SDL_MOUSEMOTION : if (event.button.which == SDL_TOUCH_MOUSEID) continue;