Fixed bug #382
Added horizontal scrolling support --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402428
This commit is contained in:
parent
e33ee1a0e2
commit
43e5d2b938
7 changed files with 41 additions and 20 deletions
|
@ -63,6 +63,8 @@ extern "C" {
|
|||
|
||||
#define SDL_BUTTON_WHEELUP 4
|
||||
#define SDL_BUTTON_WHEELDOWN 5
|
||||
#define SDL_BUTTON_WHEELLEFT 6
|
||||
#define SDL_BUTTON_WHEELRIGHT 7
|
||||
|
||||
#define SDL_DEFAULT_REPEAT_DELAY 500
|
||||
#define SDL_DEFAULT_REPEAT_INTERVAL 30
|
||||
|
|
|
@ -199,7 +199,8 @@ typedef struct SDL_MouseWheelEvent
|
|||
{
|
||||
Uint8 type; /**< SDL_MOUSEWHEEL */
|
||||
Uint8 which; /**< The mouse device index */
|
||||
int motion; /**< The direction and distance scrolled */
|
||||
int x; /**< The amount scrolled horizontally */
|
||||
int y; /**< The amount scrolled vertically */
|
||||
SDL_WindowID windowID; /**< The window with mouse focus, if any */
|
||||
} SDL_MouseWheelEvent;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue