|
Size: 1230
Comment: correct typo
|
Size: 1295
Comment: update content - event remarks re: union (for consistency); camelcase
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| #pragma disable-camelcase | #pragma camelcase off |
| Line 22: | Line 22: |
| [[SDL_MouseWheelEvent]] is a member of the [[SDL_Event]] structure and is used when an event of type SDL_MOUSEWHEEL is reported. | [[SDL_MouseWheelEvent]] is a member of the [[SDL_Event]] union and is used when an event of type SDL_MOUSEWHEEL is reported. You would access it through the event's `wheel` field. |
| Line 32: | Line 32: |
| .[[SDL_Event]] |
DRAFT |
SDL_MouseWheelEvent
A structure that contains mouse wheel event information.
Contents
Data Fields
Uint32 |
type |
SDL_MOUSEWHEEL |
Uint32 |
windowID |
the window with mouse focus, if any |
int |
x |
the amount scrolled horizontally |
int |
y |
the amount scrolled vertically |
Code Examples
You can add your code example here
Remarks
SDL_MouseWheelEvent is a member of the SDL_Event union and is used when an event of type SDL_MOUSEWHEEL is reported. You would access it through the event's wheel field.
An SDL_MOUSEWHEEL event occurs whenever a user moves the mouse wheel.
Movements to the left generate negative x values and to the right generate positive x values. Movements up (scroll forward) generate negative y values and down (scroll backward) generate positive y values. green
Related Enumerations
