Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40452
This commit is contained in:
parent
a05e8ec098
commit
aa3ff02a85
4 changed files with 12 additions and 2 deletions
|
@ -370,9 +370,9 @@ LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
if ( move ) {
|
||||
Uint8 button;
|
||||
if ( move > 0 )
|
||||
button = 4;
|
||||
button = SDL_BUTTON_WHEELUP;
|
||||
else
|
||||
button = 5;
|
||||
button = SDL_BUTTON_WHEELDOWN;
|
||||
posted = SDL_PrivateMouseButton(
|
||||
SDL_PRESSED, button, 0, 0);
|
||||
posted |= SDL_PrivateMouseButton(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue