Commit 8351d2d481d5d0565dd38afdf895596183903594
1 parent
08785f48
WHEEL defines may not be available in SDL
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@523 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
0 deletions
sdl.c
... | ... | @@ -195,10 +195,12 @@ static void sdl_send_mouse_event(void) |
195 | 195 | buttons |= MOUSE_EVENT_MBUTTON; |
196 | 196 | /* XXX: test wheel */ |
197 | 197 | dz = 0; |
198 | +#ifdef SDL_BUTTON_WHEELUP | |
198 | 199 | if (state & SDL_BUTTON(SDL_BUTTON_WHEELUP)) |
199 | 200 | dz--; |
200 | 201 | if (state & SDL_BUTTON(SDL_BUTTON_WHEELDOWN)) |
201 | 202 | dz++; |
203 | +#endif | |
202 | 204 | kbd_mouse_event(dx, dy, dz, buttons); |
203 | 205 | } |
204 | 206 | ... | ... |