Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32events.c @ 2284:545fbf461c5b
Fixed bug #464
Added X1/X2 button constants
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Dec 2007 06:09:25 +0000 |
parents | 003c1b5b07da |
children | 514f7c1651fc |
comparison
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); |