# HG changeset patch # User Sam Lantinga # Date 1029818945 0 # Node ID d0ab9718bf91900cb879624e3f46e475200797bf # Parent b4e14b15af3cfcd19de31aca9223c2cc360582b5 *** empty log message *** diff -r b4e14b15af3c -r d0ab9718bf91 src/video/wincommon/SDL_sysevents.c --- a/src/video/wincommon/SDL_sysevents.c Tue Aug 20 04:44:36 2002 +0000 +++ b/src/video/wincommon/SDL_sysevents.c Tue Aug 20 04:49:05 2002 +0000 @@ -314,27 +314,27 @@ /* Figure out which button to use */ switch (msg) { case WM_LBUTTONDOWN: - button = 1; + button = SDL_BUTTON_LEFT; state = SDL_PRESSED; break; case WM_LBUTTONUP: - button = 1; + button = SDL_BUTTON_LEFT; state = SDL_RELEASED; break; case WM_MBUTTONDOWN: - button = 2; + button = SDL_BUTTON_MIDDLE; state = SDL_PRESSED; break; case WM_MBUTTONUP: - button = 2; + button = SDL_BUTTON_MIDDLE; state = SDL_RELEASED; break; case WM_RBUTTONDOWN: - button = 3; + button = SDL_BUTTON_RIGHT; state = SDL_PRESSED; break; case WM_RBUTTONUP: - button = 3; + button = SDL_BUTTON_RIGHT; state = SDL_RELEASED; break; default: @@ -582,12 +582,12 @@ /* Register the application class */ class.hCursor = NULL; #ifdef _WIN32_WCE - { + { /* WinCE uses the UNICODE version */ int nLen = strlen(name)+1; SDL_Appname = malloc(nLen*2); MultiByteToWideChar(CP_ACP, 0, name, -1, SDL_Appname, nLen); - } + } #else { int nLen = strlen(name)+1;