Mercurial > sdl-ios-xcode
comparison src/video/wincommon/SDL_sysevents.c @ 451:24edec3cafe4
Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 19 Aug 2002 18:09:44 +0000 |
parents | 16d0449891b8 |
children | a6fa62b1be09 |
comparison
equal
deleted
inserted
replaced
450:8a43e0cbf02f | 451:24edec3cafe4 |
---|---|
368 if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) { | 368 if ( SDL_VideoSurface && ! DINPUT_FULLSCREEN() ) { |
369 int move = (short)HIWORD(wParam); | 369 int move = (short)HIWORD(wParam); |
370 if ( move ) { | 370 if ( move ) { |
371 Uint8 button; | 371 Uint8 button; |
372 if ( move > 0 ) | 372 if ( move > 0 ) |
373 button = 4; | 373 button = SDL_BUTTON_WHEELUP; |
374 else | 374 else |
375 button = 5; | 375 button = SDL_BUTTON_WHEELDOWN; |
376 posted = SDL_PrivateMouseButton( | 376 posted = SDL_PrivateMouseButton( |
377 SDL_PRESSED, button, 0, 0); | 377 SDL_PRESSED, button, 0, 0); |
378 posted |= SDL_PrivateMouseButton( | 378 posted |= SDL_PrivateMouseButton( |
379 SDL_RELEASED, button, 0, 0); | 379 SDL_RELEASED, button, 0, 0); |
380 } | 380 } |