SDL 3.0
SDL_MouseWheelEvent Struct Reference

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

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint64 timestamp
 
SDL_WindowID windowID
 
SDL_MouseID which
 
float x
 
float y
 
Uint32 direction
 
float mouseX
 
float mouseY
 

Detailed Description

Mouse wheel event structure (event.wheel.*)

Definition at line 323 of file SDL_events.h.

Field Documentation

◆ direction

Uint32 SDL_MouseWheelEvent::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

Definition at line 331 of file SDL_events.h.

◆ mouseX

float SDL_MouseWheelEvent::mouseX

X coordinate, relative to window

Definition at line 332 of file SDL_events.h.

◆ mouseY

float SDL_MouseWheelEvent::mouseY

Y coordinate, relative to window

Definition at line 333 of file SDL_events.h.

◆ timestamp

Uint64 SDL_MouseWheelEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 326 of file SDL_events.h.

◆ type

Uint32 SDL_MouseWheelEvent::type

SDL_EVENT_MOUSE_WHEEL

Definition at line 325 of file SDL_events.h.

◆ which

SDL_MouseID SDL_MouseWheelEvent::which

The mouse instance id, or SDL_TOUCH_MOUSEID

Definition at line 328 of file SDL_events.h.

◆ windowID

SDL_WindowID SDL_MouseWheelEvent::windowID

The window with mouse focus, if any

Definition at line 327 of file SDL_events.h.

◆ x

float SDL_MouseWheelEvent::x

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

Definition at line 329 of file SDL_events.h.

◆ y

float SDL_MouseWheelEvent::y

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

Definition at line 330 of file SDL_events.h.


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