add in support for passing down the "natural" (or flipped) scrolling direction in the MouseWheelEvent event

This commit is contained in:
Edward Rudd 2014-11-23 21:09:54 -05:00
parent c8e397c32f
commit cd7a350e3d
13 changed files with 33 additions and 15 deletions

View file

@ -260,6 +260,7 @@ typedef struct SDL_MouseWheelEvent
Uint32 which; /**< The mouse instance id, or SDL_TOUCH_MOUSEID */
Sint32 x; /**< The amount scrolled horizontally, positive to the right and negative to the left */
Sint32 y; /**< The amount scrolled vertically, positive away from the user and negative toward the user */
Uint32 direction; /**< Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back */
} SDL_MouseWheelEvent;
/**