comparison src/video/win32/SDL_win32events.c @ 2975:317b2f8e5e4f

Fixed bug #663 Fixed mouse wheel direction
author Sam Lantinga <slouken@libsdl.org>
date Sat, 03 Jan 2009 06:12:05 +0000
parents d2f68ec8c1d0
children 502adab079a4
comparison
equal deleted inserted replaced
2974:d2f68ec8c1d0 2975:317b2f8e5e4f
284 SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_X2); 284 SDL_SendMouseButton(index, SDL_PRESSED, SDL_BUTTON_X2);
285 } else if (flags & RI_MOUSE_BUTTON_5_UP) { 285 } else if (flags & RI_MOUSE_BUTTON_5_UP) {
286 SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2); 286 SDL_SendMouseButton(index, SDL_RELEASED, SDL_BUTTON_X2);
287 } 287 }
288 if (flags & RI_MOUSE_WHEEL) { 288 if (flags & RI_MOUSE_WHEEL) {
289 if (raw->data.mouse.usButtonData != 0) { 289 SDL_SendMouseWheel(index, 0,
290 SDL_SendMouseWheel(index, 0, 290 (short)raw->data.mouse.usButtonData);
291 raw->data.mouse.usButtonData);
292 }
293 } 291 }
294 SDL_stack_free(lpb); 292 SDL_stack_free(lpb);
295 } 293 }
296 return (0); 294 return (0);
297 295