Wiki Page Content

Differences between revisions 9 and 10
Revision 9 as of 2011-05-01 04:26:40
Size: 1295
Editor: SheenaSmith
Comment: update content - event remarks re: union (for consistency); camelcase
Revision 10 as of 2012-08-10 13:15:19
Size: 1394
Editor: pallavnawani
Comment: Added Some Information
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
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. <<Color2(green,This information needs to be verified.)>> 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. <<Color2(green,This information needs to be verified.)>> <<Color2(red, The information is correct for Windows and Mac Os X. Other platforms not checked.)>>

DRAFT

SDL_MouseWheelEvent

A structure that contains mouse wheel event information.

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

red


CategoryStruct, CategoryEvents

None: SDL_MouseWheelEvent (last edited 2019-05-17 22:32:07 by DanielG)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit