diff options
author | Jonathan Gray | 2003-03-27 04:20:17 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-03-27 04:20:17 +0000 |
commit | a8212179eb7a4543c6986f86a1c934e60f502b41 (patch) | |
tree | 7436ef75d24ca36b7da5d9b3fcd411a06f5e11db /backends/sdl | |
parent | ddb1173bf8c0e2a9ba1a29825fc999587803e404 (diff) | |
download | scummvm-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.cpp | 2 |
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; |