diff options
author | Max Horn | 2002-10-16 20:32:12 +0000 |
---|---|---|
committer | Max Horn | 2002-10-16 20:32:12 +0000 |
commit | b1766c28b276e102bed83652c467df9db270b3ac (patch) | |
tree | 238986ad281e0864aa46979c0f8bf40c950019ea /backends/sdl | |
parent | d5bcb63f829f4c4aecd45cb60e492ca896ad77a5 (diff) | |
download | scummvm-rg350-b1766c28b276e102bed83652c467df9db270b3ac.tar.gz scummvm-rg350-b1766c28b276e102bed83652c467df9db270b3ac.tar.bz2 scummvm-rg350-b1766c28b276e102bed83652c467df9db270b3ac.zip |
patch #620627: mouse wheel support for NewGui
svn-id: r5169
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index aa9a825bf4..17d2dc8885 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -588,6 +588,12 @@ bool OSystem_SDL_Common::poll_event(Event *event) { event->event_code = EVENT_LBUTTONDOWN; else if (ev.button.button == SDL_BUTTON_RIGHT) event->event_code = EVENT_RBUTTONDOWN; +#if defined(SDL_BUTTON_WHEELUP) && defined(SDL_BUTTON_WHEELDOWN) + else if (ev.button.button == SDL_BUTTON_WHEELUP) + event->event_code = EVENT_WHEELUP; + else if (ev.button.button == SDL_BUTTON_WHEELDOWN) + event->event_code = EVENT_WHEELDOWN; +#endif else break; km.x = event->mouse.x = ev.motion.x; |