Revision 8351d2d4
b/sdl.c | ||
---|---|---|
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 |
|
Also available in: Unified diff