comparison src/video/wincommon/SDL_sysevents.c @ 4011:f5794774970d SDL-1.2

Reverted mousewheel support in 1.2, since it breaks binary compatibility.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 06 Jul 2007 13:39:03 +0000
parents 3aa1406620f6
children 82dab719502e
comparison
equal deleted inserted replaced
4010:3aa1406620f6 4011:f5794774970d
518 button = SDL_BUTTON_RIGHT; 518 button = SDL_BUTTON_RIGHT;
519 state = SDL_RELEASED; 519 state = SDL_RELEASED;
520 break; 520 break;
521 case WM_XBUTTONDOWN: 521 case WM_XBUTTONDOWN:
522 xbuttonval = GET_XBUTTON_WPARAM(wParam); 522 xbuttonval = GET_XBUTTON_WPARAM(wParam);
523 button = SDL_BUTTON_WHEELRIGHT + xbuttonval; 523 button = SDL_BUTTON_WHEELDOWN + xbuttonval;
524 state = SDL_PRESSED; 524 state = SDL_PRESSED;
525 break; 525 break;
526 case WM_XBUTTONUP: 526 case WM_XBUTTONUP:
527 xbuttonval = GET_XBUTTON_WPARAM(wParam); 527 xbuttonval = GET_XBUTTON_WPARAM(wParam);
528 button = SDL_BUTTON_WHEELRIGHT + xbuttonval; 528 button = SDL_BUTTON_WHEELDOWN + xbuttonval;
529 state = SDL_RELEASED; 529 state = SDL_RELEASED;
530 break; 530 break;
531 default: 531 default:
532 /* Eh? Unknown button? */ 532 /* Eh? Unknown button? */
533 return(0); 533 return(0);