diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-04 18:15:01 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-04 18:15:01 +0000 |
commit | 8351d2d481d5d0565dd38afdf895596183903594 (patch) | |
tree | 5c302654fafb94c33315d45a9ef5966e60aeff61 /sdl.c | |
parent | 08785f48b73cfe79f316c49b60dded9afb220161 (diff) | |
download | qemu-8351d2d481d5d0565dd38afdf895596183903594.zip qemu-8351d2d481d5d0565dd38afdf895596183903594.tar.gz qemu-8351d2d481d5d0565dd38afdf895596183903594.tar.bz2 |
WHEEL defines may not be available in SDL
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@523 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r-- | sdl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -195,10 +195,12 @@ static void sdl_send_mouse_event(void) buttons |= MOUSE_EVENT_MBUTTON; /* XXX: test wheel */ dz = 0; +#ifdef SDL_BUTTON_WHEELUP if (state & SDL_BUTTON(SDL_BUTTON_WHEELUP)) dz--; if (state & SDL_BUTTON(SDL_BUTTON_WHEELDOWN)) dz++; +#endif kbd_mouse_event(dx, dy, dz, buttons); } |