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 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402429
This commit is contained in:
parent
79ce9cd629
commit
cf458d63c9
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue