wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
Functions

Functions for reading accumulated scroll wheel input. More...

Collaboration diagram for Mouse Scroll API:

Functions

BGI_API void BGI_CALL wxbgi_get_scroll_delta (double *dx, double *dy)
 Reads and atomically clears the accumulated scroll deltas.
 

Detailed Description

Functions for reading accumulated scroll wheel input.

Function Documentation

◆ wxbgi_get_scroll_delta()

BGI_API void BGI_CALL wxbgi_get_scroll_delta ( double *  dx,
double *  dy 
)

Reads and atomically clears the accumulated scroll deltas.

Returns the total horizontal and vertical scroll since the last call. Both deltas are reset to 0.0 after this call. Either output pointer may be NULL if that axis is not needed.

Parameters
dxReceives accumulated horizontal scroll (positive = right).
dyReceives accumulated vertical scroll (positive = up/forward).