aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
authorJonathan Gray2003-03-27 04:20:17 +0000
committerJonathan Gray2003-03-27 04:20:17 +0000
commita8212179eb7a4543c6986f86a1c934e60f502b41 (patch)
tree7436ef75d24ca36b7da5d9b3fcd411a06f5e11db /backends/sdl
parentddb1173bf8c0e2a9ba1a29825fc999587803e404 (diff)
downloadscummvm-rg350-a8212179eb7a4543c6986f86a1c934e60f502b41.tar.gz
scummvm-rg350-a8212179eb7a4543c6986f86a1c934e60f502b41.tar.bz2
scummvm-rg350-a8212179eb7a4543c6986f86a1c934e60f502b41.zip
add back removed checks for definitions of mouse scrolling buttons before using them as we don't want to depend on sdl >= 1.2.5
svn-id: r6872
Diffstat (limited to 'backends/sdl')
-rw-r--r--backends/sdl/sdl-common.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index 0d74e889fe..14ef88b4e7 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -654,10 +654,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.button.x;