My Project
Loading...
Searching...
No Matches
SDL_MouseWheelEvent Struct Reference

Mouse wheel event structure (event.wheel.*) More...

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint32 timestamp
 
Uint32 windowID
 
Uint32 which
 
Sint32 x
 
Sint32 y
 
Uint32 direction
 
float preciseX
 
float preciseY
 
Sint32 mouseX
 
Sint32 mouseY
 

Detailed Description

Mouse wheel event structure (event.wheel.*)

Field Documentation

◆ direction

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

◆ mouseX

Sint32 mouseX

X coordinate, relative to window (added in 2.26.0)

◆ mouseY

Sint32 mouseY

Y coordinate, relative to window (added in 2.26.0)

◆ preciseX

float preciseX

The amount scrolled horizontally, positive to the right and negative to the left, with float precision (added in 2.0.18)

◆ preciseY

float preciseY

The amount scrolled vertically, positive away from the user and negative toward the user, with float precision (added in 2.0.18)

◆ timestamp

Uint32 timestamp

In milliseconds, populated using SDL_GetTicks()

◆ type

Uint32 type

◆ which

Uint32 which

The mouse instance id, or SDL_TOUCH_MOUSEID

◆ windowID

Uint32 windowID

The window with mouse focus, if any

◆ x

Sint32 x

The amount scrolled horizontally, positive to the right and negative to the left

◆ y

Sint32 y

The amount scrolled vertically, positive away from the user and negative toward the user


The documentation for this struct was generated from the following file: