mirror of
https://github.com/yawut/SDL.git
synced 2026-05-05 20:57:28 -05:00
Ugh... actually changing what buttons are returned to the application. Maybe we should wait until SDL 1.3 for horizontal scrolling support?
--HG-- branch : SDL-1.2
This commit is contained in:
parent
9c3a477063
commit
d4ab10237e
|
|
@ -520,12 +520,12 @@ LRESULT CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
break;
|
||||
case WM_XBUTTONDOWN:
|
||||
xbuttonval = GET_XBUTTON_WPARAM(wParam);
|
||||
button = SDL_BUTTON_WHEELDOWN + xbuttonval;
|
||||
button = SDL_BUTTON_WHEELRIGHT + xbuttonval;
|
||||
state = SDL_PRESSED;
|
||||
break;
|
||||
case WM_XBUTTONUP:
|
||||
xbuttonval = GET_XBUTTON_WPARAM(wParam);
|
||||
button = SDL_BUTTON_WHEELDOWN + xbuttonval;
|
||||
button = SDL_BUTTON_WHEELRIGHT + xbuttonval;
|
||||
state = SDL_RELEASED;
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user