src/video/wincommon/SDL_sysevents.c
branchSDL-1.2
changeset 4113 82dab719502e
parent 4011 f5794774970d
child 4157 baf615f9f2a0
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);