comparison src/video/wincommon/SDL_sysevents.c @ 4010:3aa1406620f6 SDL-1.2

Ugh... actually changing what buttons are returned to the application. Maybe we should wait until SDL 1.3 for horizontal scrolling support?
author Sam Lantinga <slouken@libsdl.org>
date Fri, 06 Jul 2007 13:32:20 +0000
parents 4e4866a72905
children f5794774970d
comparison
equal deleted inserted replaced
4009:1146681dbb74 4010:3aa1406620f6
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_WHEELDOWN + xbuttonval; 523 button = SDL_BUTTON_WHEELRIGHT + 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_WHEELDOWN + xbuttonval; 528 button = SDL_BUTTON_WHEELRIGHT + 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);