comparison src/video/wincommon/SDL_sysevents.c @ 4113:82dab719502e SDL-1.2

Fixed bug #464 Added X1/X2 button constants
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Dec 2007 06:08:17 +0000
parents f5794774970d
children baf615f9f2a0
comparison
equal deleted inserted replaced
4112:0c3559059d6d 4113:82dab719502e
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_X1 + xbuttonval - 1;
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_X1 + xbuttonval - 1;
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);