Skip to content

Commit

Permalink
Ugh... actually changing what buttons are returned to the application…
Browse files Browse the repository at this point in the history
…. Maybe we should wait until SDL 1.3 for horizontal scrolling support?
  • Loading branch information
slouken committed Jul 6, 2007
1 parent 1ade2e3 commit e19f070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/wincommon/SDL_sysevents.c
Expand Up @@ -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:
Expand Down

0 comments on commit e19f070

Please sign in to comment.