*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40458
This commit is contained in:
Sam Lantinga 2002-08-20 04:49:05 +00:00
parent 9e7b2297be
commit 81a23f5e99

View file

@ -314,27 +314,27 @@ LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
/* Figure out which button to use */ /* Figure out which button to use */
switch (msg) { switch (msg) {
case WM_LBUTTONDOWN: case WM_LBUTTONDOWN:
button = 1; button = SDL_BUTTON_LEFT;
state = SDL_PRESSED; state = SDL_PRESSED;
break; break;
case WM_LBUTTONUP: case WM_LBUTTONUP:
button = 1; button = SDL_BUTTON_LEFT;
state = SDL_RELEASED; state = SDL_RELEASED;
break; break;
case WM_MBUTTONDOWN: case WM_MBUTTONDOWN:
button = 2; button = SDL_BUTTON_MIDDLE;
state = SDL_PRESSED; state = SDL_PRESSED;
break; break;
case WM_MBUTTONUP: case WM_MBUTTONUP:
button = 2; button = SDL_BUTTON_MIDDLE;
state = SDL_RELEASED; state = SDL_RELEASED;
break; break;
case WM_RBUTTONDOWN: case WM_RBUTTONDOWN:
button = 3; button = SDL_BUTTON_RIGHT;
state = SDL_PRESSED; state = SDL_PRESSED;
break; break;
case WM_RBUTTONUP: case WM_RBUTTONUP:
button = 3; button = SDL_BUTTON_RIGHT;
state = SDL_RELEASED; state = SDL_RELEASED;
break; break;
default: default: