diff options
Diffstat (limited to 'src/osd/modules/input/input_sdl.cpp')
-rw-r--r-- | src/osd/modules/input/input_sdl.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/osd/modules/input/input_sdl.cpp b/src/osd/modules/input/input_sdl.cpp index 06096a6961b..8814cfe3876 100644 --- a/src/osd/modules/input/input_sdl.cpp +++ b/src/osd/modules/input/input_sdl.cpp @@ -248,6 +248,17 @@ public: } } } + + else if (sdlevent.button.button == 3) + { + int cx, cy; + sdl_window_info *window = GET_FOCUS_WINDOW(&sdlevent.button); + + if (window != NULL && window->xy_to_render_target(sdlevent.button.x, sdlevent.button.y, &cx, &cy)) + { + machine().ui_input().push_mouse_rdown_event(window->target(), cx, cy); + } + } break; case SDL_MOUSEBUTTONUP: @@ -264,6 +275,16 @@ public: machine().ui_input().push_mouse_up_event(window->target(), cx, cy); } } + else if (sdlevent.button.button == 3) + { + int cx, cy; + sdl_window_info *window = GET_FOCUS_WINDOW(&sdlevent.button); + + if (window != NULL && window->xy_to_render_target(sdlevent.button.x, sdlevent.button.y, &cx, &cy)) + { + machine().ui_input().push_mouse_rup_event(window->target(), cx, cy); + } + } break; case SDL_MOUSEWHEEL: |