src/video/win32/SDL_win32events.c
changeset 2284 545fbf461c5b
parent 2152 003c1b5b07da
child 2308 514f7c1651fc
equal deleted inserted replaced
2283:546f7c1eb755 2284:545fbf461c5b
   588                 button = SDL_BUTTON_RIGHT;
   588                 button = SDL_BUTTON_RIGHT;
   589                 state = SDL_RELEASED;
   589                 state = SDL_RELEASED;
   590                 break;
   590                 break;
   591             case WM_XBUTTONDOWN:
   591             case WM_XBUTTONDOWN:
   592                 xbuttonval = GET_XBUTTON_WPARAM(wParam);
   592                 xbuttonval = GET_XBUTTON_WPARAM(wParam);
   593                 button = SDL_BUTTON_RIGHT + xbuttonval;
   593                 button = SDL_BUTTON_X1 + xbuttonval - 1;
   594                 state = SDL_PRESSED;
   594                 state = SDL_PRESSED;
   595                 break;
   595                 break;
   596             case WM_XBUTTONUP:
   596             case WM_XBUTTONUP:
   597                 xbuttonval = GET_XBUTTON_WPARAM(wParam);
   597                 xbuttonval = GET_XBUTTON_WPARAM(wParam);
   598                 button = SDL_BUTTON_RIGHT + xbuttonval;
   598                 button = SDL_BUTTON_X1 + xbuttonval - 1;
   599                 state = SDL_RELEASED;
   599                 state = SDL_RELEASED;
   600                 break;
   600                 break;
   601             default:
   601             default:
   602                 /* Eh? Unknown button? */
   602                 /* Eh? Unknown button? */
   603                 return (0);
   603                 return (0);