Skip to content
Permalink
Browse files

Ugh... actually changing what buttons are returned to the application…

…. Maybe we should wait until SDL 1.3 for horizontal scrolling support?
  • Loading branch information
slouken committed Jul 6, 2007
1 parent 1ade2e3 commit e19f070b97fa35fa12b4ebdceb446a3937168b90
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/wincommon/SDL_sysevents.c
@@ -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:

0 comments on commit e19f070

Please sign in to comment.